Why is System.Environment.Version reporting structure 2?

On a website dedicated to Framework 3.5, on a computer with installed up to 3.5 SP 1, when I call System.Environment.Version on the page, it reports 2.0.50727.3053. Can anyone guess why this is happening?

+3
source share
3 answers

The MSDN docs for Environment.Version talk about this:

Returns a Version object that describes the major, minor, string, and revision numbers of the common language runtime.

The CLR version in 3.5 SP1 is still 2.0.

Consequently, there is no mistake; it behaves exactly as documented.

+1
source

CLR, - 2.0x; 4.0x .NET 4.0 - .NET 2.0,.NET 3.0 .NET 3.5 CLR ( ; -p)

+7

Because the base CLR for the .NET 3.5 platform is still 2.0.50727.3053.

.NET 3.0 and 3.5 are add-ons for .NET 2.0 - the basic CLR remains the same.

This will change from .NET 4.0 with the new CLR 4.0.

Mark

+2
source

Source: https://habr.com/ru/post/1705769/


All Articles