You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
* Change Environment.Version to return product version
- Contributes to https://github.com/dotnet/corefx/issues/31099
- Use AssemblyInformationalVersion attribute as fallback
* Add sanity test for Environment.Version
* Disable CodeDom tests
* Fix test assembly name
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Copy file name to clipboardExpand all lines: src/Common/src/CoreLib/System/Environment.cs
+24-4
Original file line number
Diff line number
Diff line change
@@ -129,10 +129,30 @@ public static OperatingSystem OSVersion
129
129
130
130
publicstaticboolUserInteractive=>true;
131
131
132
-
// Previously this represented the File version of mscorlib.dll. Many other libraries in the framework and outside took dependencies on the first three parts of this version
133
-
// remaining constant throughout 4.x. From 4.0 to 4.5.2 this was fine since the file version only incremented the last part. Starting with 4.6 we switched to a file versioning
134
-
// scheme that matched the product version. In order to preserve compatibility with existing libraries, this needs to be hard-coded.
0 commit comments