Skip to content

Upgrading Microsoft.dotnet fails, multiple versions installed #1142

Closed

Description

@Peter-76

Brief description of your issue

Winget fails to upgrade Microsoft .NET SDK as there are multiple version installed.

Steps to reproduce

[winget upgrade]
Name                              ID                                    Version          Verfügbar        Quelle
----------------------------------------------------------------------------------------------------------------
Dropbox                           Dropbox.Dropbox                       124.3.4898       124.4.4910       winget
Microsoft 365 Apps for enterprise Microsoft.Office                      16.0.13801.20638 16.0.13929.20372 winget
Microsoft 365 Apps for enterprise Microsoft.Office                      16.0.13801.20638 16.0.13929.20372 winget
OBS Studio                        OBSProject.OBSStudio                  26.1.1           27.0.0           winget
Visual Studio Community 2019      Microsoft.VisualStudio.2019.Community 16.10.31321.278  16.10.31402.337  winget
Microsoft .NET SDK                Microsoft.dotnet                      5.2.421.26362    5.3.121.27113    winget
Python 3                          Python.Python.3                       2.7.6150         3.9.5150.0       winget
Microsoft Windows Desktop Runtime Microsoft.dotnetRuntime               3.1.16.30112     5.0.6.30021      winget
Microsoft .NET SDK                Microsoft.dotnet                      5.1.421.11822    5.3.121.27113    winget

So there are 2 versions of Microsoft .NET SDK listed.

[winget upgrade --id "Microsoft.dotnet" -e]
Mehrere installierte Pakete mit übereinstimmenden Eingabekriterien gefunden. Bitte verfeinern Sie die Eingabe.
Name                             ID
-----------------------------------------------------------------------
Microsoft .NET SDK               Microsoft.dotnet
Microsoft .NET SDK 5.0.301 (x64) {d13b364c-ee85-41ba-93a9-0015b6c2945d}
Microsoft .NET SDK 5.0.104 (x64) {ffd9c013-1ec9-45ed-8ca2-104e6a0800b7}`

Upgrade fails.

[winget list Microsoft.dotnet]
Name                                             ID                                     Version       Verfügbar     Quelle
--------------------------------------------------------------------------------------------------------------------------
Microsoft .NET SDK                               Microsoft.dotnet                       5.2.421.26362 5.3.121.27113 winget
Microsoft .NET SDK 5.0.301 (x64)                 {d13b364c-ee85-41ba-93a9-0015b6c2945d} 5.3.121.27113
Microsoft .NET SDK 5.0.104 (x64)                 {ffd9c013-1ec9-45ed-8ca2-104e6a0800b7} 5.1.421.11822
Microsoft Windows Desktop Runtime                Microsoft.dotnetRuntime                5.0.6.30021
Microsoft Windows Desktop Runtime - 5.0.7 (x86)  {d13b2de2-6d8a-496e-adce-ffbc4a8efc0c} 5.0.7.30113
Microsoft Windows Desktop Runtime - 3.1.16 (x86) {eadb038c-8c60-4258-8cf9-e43e809329a4} 3.1.16.30112

Winget list returns 6 results, but only 1 has ID Microsoft.dotnet.
In addition there seems to be already the latest version installed, but under a different name with another ID {d13b364c-ee85-41ba-93a9-0015b6c2945d}

Expected behavior

As winget list Microsoft.dotnet returns exactly one app with ID Microsoft.dotnet, this one should be updated without an error

Actual behavior

Upgrade fails

Environment

[winget --info]
Windows Package Manager v1.0.11451
Copyright (c) Microsoft Corporation. Alle Rechte vorbehalten.

Windows: Windows.Desktop v10.0.19043.1052
Paket: Microsoft.DesktopAppInstaller v1.11.11451.0

Activity

  1. ghost added
    Needs-Triage
    on Jun 9, 2021
  2. added
    Issue-Bug
    and removed
    Needs-Triage
    on Jun 9, 2021
  3. denelon commented on Jun 9, 2021

    @denelon
    Collaborator

    Peter-76 thank you for reporting this. We're working through some of the upgrade scenarios #752, and enhancement to the manifest schema #1073 to improve this experience.

  4. denelon commented on Jun 9, 2021

    @denelon
    Collaborator

    I've added "Blocking-Issue" related to #1073.

  5. denelon commented on Jun 21, 2022

    @denelon
    Collaborator

    We have implemented support for looking at Windows Apps & Features data in the manifest for Windows Package Manager 1.3 Release Candidate to help better correlation with the right packages, as well as evaluating the "displayVersion" for version comparison. The user will still see "packageVersion" displayed as that is the preference for DotNet packages one this rolls out to GA.

    Note: We still have some work on the service side to complete the implementation.

  6. denelon commented on Aug 8, 2022

    @denelon
    Collaborator

    We've rolled the changes out. This issue should be resolved.

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

    Blocking-IssueIssue-Bug

    Type

    No type

    Projects

    • Status
      Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions