Skip to content

RuntimeInformation.FrameworkDescription has changed behavior in .NET 6? #61394

Closed

Description

@mairaw

Description

I've notice that this API has changed behavior in .NET 6 and I'm not sure if it's by design.

In .NET 6, the value returned is .NET 6.0.0-rtm.21522.10. In .NET 5, the value returned is .NET 5.0.12.

You can see this behavior on the .NET site footer: https://dotnet.microsoft.com/
I can send internally the repro with the .NET 5 behavior.

Reproduction Steps

This is the code that we have for that:
new HtmlString(
footerHtml.Replace(
">Powered by ASP.NET Core",
$">Powered by {RuntimeInformation.FrameworkDescription}"));

Expected behavior

Return a friendlier version description

Actual behavior

Returns some strings like -rtm, etc. that I don't know where they're coming from. I expected that it would return .NET 6.0.0

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Activity

  1. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Nov 10, 2021
  2. hoyosjs commented on Nov 10, 2021

    @hoyosjs
    Member

    Thanks for the report @mairaw. This is a known issue: #61330 and #45812; the fix was proposed but fell through the cracks. It will make 6.0.1.

  3. ghost locked as resolved and limited conversation to collaborators on Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions