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?
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.
CLR, - 2.0x; 4.0x .NET 4.0 - .NET 2.0,.NET 3.0 .NET 3.5 CLR ( ; -p)
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
Source: https://habr.com/ru/post/1705769/More articles:Управление изменениями - project-managementhow can i get the image size before it loads in html? - javascriptPlanning an ASP.NET Outlook Application Assignment - asp.netCruise control - scriptingCross-Domain Error - dnsone liner to retrieve a data block by a block - command-lineC #: Help determine the selected node index in TreeView. NullReferenceException Error? - c #Bind DateTime to date and time EditFields - c #Need runtime in C ++? - c ++Description iptables for Linux iptables TRIGGER - linuxAll Articles