-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Description
Breaking change: Update FrameworkName to ".NET"
RuntimeInformation.FrameworkDescription(String) returns ".NET" instead of ".NET Core".
Version introduced
.NET 5
Old behavior
RuntimeInformation.FrameworkDescription(String) returned ".NET Core" as part of the description string, e.g.: ".NET Core 3.1.1".
New behavior
RuntimeInformation.FrameworkDescription(String) returns ".NET" as part of the description string, e.g.: ".NET 5.0.0".
Reason for change
With .NET 5, netcoreapp is replaced by net as the short target framework moniker and with that the framework's description is updated as well. The change is cosmetic as the FrameworkName isn't encoded anywhere else than in the RuntimeInformation.FrameworkDescription(String) property.
Recommended action
Alter the code that searches for ".NET Core" in the string returned by the API to ".NET".
Category
- ASP.NET Core
- C#
- Code analysis
- Core .NET libraries
- Cryptography
- Data
- Debugger
- Deployment
- Globalization
- Interop
- JIT
- LINQ
- Managed Extensibility Framework (MEF)
- MSBuild
- Networking
- Printing
- Security
- Serialization
- Visual Basic
- Windows Forms
- Windows Presentation Foundation (WPF)
- XML, XSLT
Affected APIs
RuntimeInformation.FrameworkDescription(String)
Issue metadata
- Issue type: breaking-change