Skip to content

Breaking change: Update FrameworkName to ".NET" #20958

Closed

Description

@ViktorHofer

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

Activity

  1. added
    ⌚ Not Triaged
    breaking-change
    on Oct 7, 2020
  2. added
    🏁 Release: .NET 5
    and removed
    ⌚ Not Triaged
    on Oct 7, 2020
  3. self-assigned this
    on Oct 7, 2020
  4. added a commit that references this issue on Oct 13, 2020
    b2d89ad
  5. added a commit that references this issue on Oct 13, 2020
    c0be408
  6. added a commit that references this issue on Oct 14, 2020
    39b1d5f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🏁 Release: .NET 5breaking-change

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions