Currently, the Windows Technical Preview for Enterprise (Build 9860) seems to have broken .NET version information. In addition, this behavior seems to be present for previewing Visual Studio 2015 / .NET 4.6.
So far, I could use System.Environment.Version to get the version of the CLR assembly needed to verify certain preconditions (for example, make sure that a specific KB Update is present if there are known problems when the software runs in an outdated environment). Given that .NET 4.5 is a replacement for .NET 4.0, all versions begin with 4.0.30319and end with the actual version in the revision field. Starting with the most recent Windows preview, this information seems false, inconsistent, or at least unexpected. Now the property returns 4.0.30319.0, which is a significant step backward in terms of ordering a version. For comparison, my updated version of Windows 8.1 reflects 4.0.30319.34014.
The documentation for .NET 4.5 states that you can use either Environment.Version or programmatic registry access to determine the installed version of .NET.
Checking the registry gives a release key 381023, which is higher 379893, indicating that at least .NET 4.5.2 is present.
Is there any additional information that indicates whether this is a bug in the last preview or if System.Environment will no longer be used in this way?
source
share