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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for