FrameworkDescription's value is .NET instead of .NET Core
RuntimeInformation.FrameworkDescription now returns ".NET" instead of ".NET Core".
Change description
In previous .NET versions, RuntimeInformation.FrameworkDescription returns ".NET Core" as part of the description string, for example, .NET Core 3.1.1
.
Starting in .NET 5, RuntimeInformation.FrameworkDescription returns ".NET" as part of the description string, for example, .NET 5.0.0
.
Reason for change
With .NET 5, netcoreapp
is replaced by net
as the short target-framework moniker. For consistency, the framework's description has also been updated. The change is cosmetic, as the FrameworkName
isn't encoded anywhere else than in the RuntimeInformation.FrameworkDescription property.
Version introduced
5.0
Recommended action
Update any code that searches for ".NET Core" in the string returned by FrameworkDescription.
Affected APIs
Tagasiside
https://aka.ms/ContentUserFeedback.
Varsti tulekul: 2024. aasta jooksul tühistame GitHubi probleemide funktsiooni sisutagasiside mehhanismina ja asendame selle uue tagasisidesüsteemiga. Lisateabe saamiseks vtEsita ja vaata tagasisidet