Skip to content

System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription for stable servicing releases includes the full build information in the version suffix #45812

Closed

Description

@DamianEdwards

Description
Using the just released 5.0.1 runtime, the System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription API is returning the string ".NET 5.0.1-servicing.20575.16". The issue reproduces on Windows during local dev on a framework-dependent app, and after deployment when running on Linux as a self-contained app.

Repro
Call the System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription API in an app targeting net5.0 on a machine with the .NET 5.0.1 runtime installed.

Expected
Calling the System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription API should return a description with stable versions for stable servicing releases, e.g. ".NET 5.0.1".

Actual
Using the just released 5.0.1 runtime, calling the System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription API is returning the string ".NET 5.0.1-servicing.20575.16", which includes an unstable/preview version suffix.

Activity

  1. jkotas commented on Dec 9, 2020

    @jkotas
    Member

    @Anipik @safern This API returns the product version string of System.Private.CoreLib. Is it expected that the product version string for 5.0.1 includes the unstable/preview version suffix?

  2. safern commented on Dec 9, 2020

    @safern
    Member

    It shouldn't. I can take a look tomorrow to see why the version was wrong.

  3. self-assigned this
    on Dec 9, 2020
  4. added this to the 5.0.x milestone on Dec 9, 2020
  5. removed
    untriagedNew issue has not been triaged by the area owner
    on Dec 9, 2020
  6. ghost added
    in-prThere is an active PR which will close this issue when it is merged
    on Dec 10, 2020
  7. ghost removed
    in-prThere is an active PR which will close this issue when it is merged
    on Dec 11, 2020
  8. DamianEdwards commented on Mar 9, 2021

    @DamianEdwards
    MemberAuthor

    Is this fixed now?

  9. safern commented on Mar 9, 2021

    @safern
    Member

    Yeah this was fixed on: #45876. However I need to add tests for it to avoid regressing again.

  10. deeprobin commented on Sep 3, 2021

    @deeprobin
    Contributor

    @safern What is the current status of this?

  11. safern commented on Sep 28, 2021

    @safern
    Member

    We are still missing tests for this.

  12. 4 remaining items

  13. DamianEdwards commented on Nov 5, 2021

    @DamianEdwards
    MemberAuthor

    FYI seems we meant to take this for GA but it slipped through the cracks #60572 (comment)

  14. safern commented on Nov 8, 2021

    @safern
    Member

    I will work on adding tests for this on 7.0 so that this doesn't happen again.

  15. mairaw commented on Nov 29, 2021

    @mairaw
    Contributor

    So is the fix going to make into 6.0.1? Just wondering if I need to have a workaround in place so we don't show an ugly version on the dot.net website as I reported on #61394. If it's just a few more days, I can wait.

  16. jeffhandley commented on Jul 10, 2022

    @jeffhandley
    Member

    So is the fix going to make into 6.0.1? Just wondering if I need to have a workaround in place so we don't show an ugly version on the dot.net website as I reported on #61394. If it's just a few more days, I can wait.

    7 months later...

    We don't have the work for this scheduled yet. Moving to Future. I don't know if a workaround is already in place though.

  17. modified the milestones: 7.0.0, Future on Jul 10, 2022
  18. akoeplinger commented on Oct 24, 2023

    @akoeplinger
    Member

    This was fixed by #60572 and backported to 6.0. I verified that we return the correct stabilized version in net6.0, net7.0 and net8.0.

    We also have indirect tests for this as was surfaced by #93807 but I think adding a simple unit test shouldn't be much work, I'll open a PR for that.

  19. ghost added
    in-prThere is an active PR which will close this issue when it is merged
    on Oct 24, 2023
  20. ghost removed
    in-prThere is an active PR which will close this issue when it is merged
    on Oct 25, 2023
  21. ghost locked as resolved and limited conversation to collaborators on Nov 24, 2023
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions