Skip to content

[Misdetect of the version]: Microsoft.DotNet.DesktopRuntime.6 #3004

Open

Description

@TheBossMagnus

Please confirm these before moving forward

  • I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
  • I have not been informed if the issue is resolved in a preview version of the winget client.

Category of the issue

Other

Brief description of your issue

The version detected by Winget is 6.0.5
Anyway, the installed and lastest is 6.0.7
image

Steps to reproduce

..

Actual behavior

If i upgrade the app get reinstalled for no reason

Expected behavior

..

Environment

Windows: Windows.Desktop v10.0.22621.317
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.2091.0

Screenshots and Logs

WinGet-2022-07-27-16-58-26.048.log
WinGet-2022-08-01-16-18-59.865.log

Activity

  1. added
    Issue-Bug
    on Aug 1, 2022
  2. ghost added
    Needs-Triage
    on Aug 1, 2022
  3. changed the title [-][MIsdetech of the version]: Microsoft.DotNet.DesktopRuntime.6[/-] [+][Misdetech of the version]: Microsoft.DotNet.DesktopRuntime.6[/+] on Aug 1, 2022
  4. removed
    Needs-Triage
    on Aug 1, 2022
  5. denelon commented on Aug 1, 2022

    @denelon
    Collaborator

    if you winget list .NET are both versions present?

  6. TheBossMagnus commented on Aug 1, 2022

    @TheBossMagnus
    Author

    no one is listed
    image

  7. denelon commented on Aug 1, 2022

    @denelon
    Collaborator

    I missed the "<" indicating "less than 6.0.5". We didn't have a manifest for the version installed on the system, so it was determined to be less than the earliest manifest. I'm not sure why 6.0.17 isn't showing up in list.

  8. denelon commented on Aug 1, 2022

    @denelon
    Collaborator

    Matt Thalman (@mthalman) do you have any ideas on this one?

  9. mthalman commented on Aug 1, 2022

    @mthalman
    Member

    Be aware of the difference in major version here between what is installed and the upgrade version. It's showing 5.0.17 as installed and 6.0.7 as the upgrade version. Those are different major versions. It shouldn't attempt to recognize that as an upgrade because they have different package IDs: Microsoft.DotNet.DesktopRuntime.5 versus Microsoft.DotNet.DesktopRuntime.6.

    Demitrius Nelon (@denelon) - Why would it be crossing package IDs like this?

  10. denelon commented on Aug 1, 2022

    @denelon
    Collaborator

    It's likely that we don't have the manifests for the older versions with the "AppsAndFeatures" keys, so heuristics are trying to detect which package might match. JohnMcPMS can you confirm or deny?

  11. mthalman commented on Aug 1, 2022

    @mthalman
    Member
  12. Trenly commented on Aug 1, 2022

    @Trenly
    Contributor

    no one is listed

    What about under winget list "Desktop Runtime"?

  13. TheBossMagnus commented on Aug 2, 2022

    @TheBossMagnus
    Author

    no one is listed

    What about under winget list "Desktop Runtime"?

    image
    image

  14. Trenly commented on Aug 2, 2022

    @Trenly
    Contributor

    I'm wondering if this is an artifact from before the packages were split out into the new identifiers.
    TheBossMagnus - Can you try manually uninstalling the desktop runtime 5, then re-installing it using winget install Microsoft.DotNet.DesktopRuntime.5

  15. TheBossMagnus commented on Aug 2, 2022

    @TheBossMagnus
    Author

    I'm wondering if this is an artifact from before the packages were split out into the new identifiers. TheBossMagnus - Can you try manually uninstalling the desktop runtime 5, then re-installing it using winget install Microsoft.DotNet.DesktopRuntime.5

    fixed
    image

  16. 37 remaining items

  17. mziehm commented on Dec 11, 2023

    @mziehm

    I just had this weird behaviour, when trying to upgrade from 6.0.22 to 6.0.25.

    winget upgrade

    Name                                             Id                                Version        Available      Source
    -----------------------------------------------------------------------------------------------------------------------
    Microsoft Windows Desktop Runtime - 6.0.22 (x64) Microsoft.DotNet.DesktopRuntime.6 6.0.22         6.0.25         winget
    Windows PC Health Check                          Microsoft.WindowsPCHealthCheck    3.6.2204.08001 3.7.2204.15001 winget
    Microsoft .NET Core Runtime - 2.1.11 (x64)       Microsoft.DotNet.Runtime.3_1      < 3.1.25       3.1.32         winget
    

    winget upgrade Microsoft.DotNet.DesktopRuntime.6

    Found Microsoft .NET Windows Desktop Runtime 6.0 [Microsoft.DotNet.DesktopRuntime.6] Version 6.0.25
    This application is licensed to you by its owner.
    Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
    Downloading https://dotnetcli.azureedge.net/dotnet/WindowsDesktop/6.0.25/windowsdesktop-runtime-6.0.25-win-x64.exe
      ██████████████████████████████  54.7 MB / 54.7 MB
    Successfully verified installer hash
    Starting package install...
    Successfully installed
    

    winget upgrade

    Name                                             Id                                Version        Available      Source
    -----------------------------------------------------------------------------------------------------------------------
    Microsoft Windows Desktop Runtime - 5.0.17 (x64) Microsoft.DotNet.DesktopRuntime.6 < 6.0.5        6.0.25         winget
    Windows PC Health Check                          Microsoft.WindowsPCHealthCheck    3.6.2204.08001 3.7.2204.15001 winget
    Microsoft .NET Core Runtime - 2.1.11 (x64)       Microsoft.DotNet.Runtime.3_1      < 3.1.25       3.1.32         winget
    

    I seems to download the correct URL, at the Apps & features also shows the hopefully correct version for .NET Runtime:
    image:
    And for Desktop Runtime both the 5.0.17 and 6.0.25:
    image

    Not sure this fit here, if not please feel free to move this to a new issue if needed.

  18. hueldoeu commented on Jan 28, 2024

    @hueldoeu

    i have this
    image
    and since this post got very long i would like to know the final solution.

  19. hueldoeu commented on Jan 28, 2024

    @hueldoeu

    i have this image and since this post got very long i would like to know the final solution.

    alright the winget uninstall Microsoft.DotNet.DesktopRuntime.6 didn't work the first time so i closed cmd and started again, had to click again on some yes and it's gone now. i know what that means, but seriously, who still needs .NET desktop runtime anyway?

  20. MagicAndre1981 commented on Jan 28, 2024

    @MagicAndre1981

    but seriously, who still needs .NET desktop runtime anyway?

    this is required to run .net 6 WinForms/WPF apps. If you only run cli tools you can use the normal .net runtime Microsoft.DotNet.Runtime.6

  21. hueldoeu commented on Jan 28, 2024

    @hueldoeu

    but seriously, who still needs .NET desktop runtime anyway?

    this is required to run .net 6 WinForms/WPF apps. If you only run cli tools you can use the normal .net runtime Microsoft.DotNet.Runtime.6

    i will wait until some program begs me to install Microsoft.DotNet.DesktopRuntime.6 . there is version 8 already just like java 22 so i don't give a damn about ms products. except handbrake

  22. PsyEng commented on Feb 27, 2024

    @PsyEng

    Running the following command, should solve the problem:
    winget install --moniker dotnet-desktop-6
    The following command, should also work:
    winget install --id Microsoft.DotNet.DesktopRuntime.6

  23. treysis commented on Feb 27, 2024

    @treysis

    Nope. Unfortunately not.

  24. PsyEng commented on Feb 27, 2024

    @PsyEng

    Nope. Unfortunately not.

    Hey there! Thanks for the heads up. If you're running into trouble with "Microsoft.DotNet.DesktopRuntime.X," here's a quick fix you might want to try. Just swap out 'X' with the version you're working with:

    • Try this: winget install --id Microsoft.DotNet.DesktopRuntime.X
    • Or, you could go for: winget install --moniker dotnet-desktop-X

    When I said these steps "should" work, I meant it's not a one-size-fits-all. There might be some exceptions due to different setups.

    About the downvote, I get where you're coming from. Feedback is gold, especially if something didn't pan out as expected. If it's just the one person's experience, I'm keen to hear more, especially if anyone else tried and hit a snag. It helps everyone figure things out together.

    If you gave it a shot and it's still a no-go, could you share what went wrong? More details could help us all get to the bottom of this faster.

    Cheers for jumping in on this, and looking forward to hearing from you!

  25. treysis commented on Feb 28, 2024

    @treysis

    Well, apparently I had to uninstall first. And after reinstalling dotnet-desktop-6 it solved it for all other conflicts as well. At least for now. I don't trust it completely.

  26. hueldoeu commented on Feb 28, 2024

    @hueldoeu

    can someone paste the solution again plz?

  27. treysis commented on Feb 28, 2024

    @treysis

    Uninstall dotnet-desktop-6, reinstall dotnet-desktop-6.

  28. eabase commented on Apr 29, 2024

    @eabase

    Still the same problem.
    I wonder if it is related to: #4415 ?

  29. hueldoeu commented on Apr 29, 2024

    @hueldoeu

    i'll skip it on unigetUI

  30. removed this from the milestone on Nov 14, 2024
  31. changed the title [-][Misdetech of the version]: Microsoft.DotNet.DesktopRuntime.6[/-] [+][Misdetect of the version]: Microsoft.DotNet.DesktopRuntime.6[/+] on Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-MatchingIssue-Bug

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions