Description
Context: dotnet/runtime#87908
.NET 7 behavior: dotnet/runtime#87908 (comment)
.NET 8 behavior: dotnet/runtime#87908 (comment)
In the past, this API returns a .NET Framework-oriented value. That isn't useful. It has been updated to return a more relevant value, however, the historical leading v has been maintained.
We tried to fix this class of issues in the past, but missed this one:
Related:
Version
.NET 8 RC 1
Previous behavior
Return ImageRuntimeVersion
New behavior
Return "v" + Environment.Version
Type of breaking change
Reason for change
The existing version wasn't useful or meaningful.
Recommended action
Update code to expect new version or use typeof(object).Assembly.ImageRuntimeVersion instead.
Feature area
Core .NET libraries
Affected APIs
RuntimeEnvironment.GetSystemVersion
Associated WorkItem - 156742
Description
Context: dotnet/runtime#87908
.NET 7 behavior: dotnet/runtime#87908 (comment)
.NET 8 behavior: dotnet/runtime#87908 (comment)
In the past, this API returns a .NET Framework-oriented value. That isn't useful. It has been updated to return a more relevant value, however, the historical leading
vhas been maintained.We tried to fix this class of issues in the past, but missed this one:
Related:
Version
.NET 8 RC 1
Previous behavior
Return
ImageRuntimeVersionNew behavior
Return
"v" + Environment.VersionType of breaking change
Reason for change
The existing version wasn't useful or meaningful.
Recommended action
Update code to expect new version or use
typeof(object).Assembly.ImageRuntimeVersioninstead.Feature area
Core .NET libraries
Affected APIs
RuntimeEnvironment.GetSystemVersionAssociated WorkItem - 156742