Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading Microsoft.dotnet fails, multiple versions installed #1142

Closed
Peter-76 opened this issue Jun 9, 2021 · 4 comments
Closed

Upgrading Microsoft.dotnet fails, multiple versions installed #1142

Peter-76 opened this issue Jun 9, 2021 · 4 comments
Labels
Blocking-Issue Blocking issue Issue-Bug It either shouldn't be doing this or needs an investigation.
Milestone

Comments

@Peter-76
Copy link

Peter-76 commented Jun 9, 2021

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
@ghost ghost added the Needs-Triage Issue need to be triaged label Jun 9, 2021
@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. and removed Needs-Triage Issue need to be triaged labels Jun 9, 2021
@denelon
Copy link
Contributor

denelon commented Jun 9, 2021

@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.

@denelon denelon added the Blocking-Issue Blocking issue label Jun 9, 2021
@denelon
Copy link
Contributor

denelon commented Jun 9, 2021

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

@denelon
Copy link
Contributor

denelon commented Jun 21, 2022

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.

@denelon
Copy link
Contributor

denelon commented Aug 8, 2022

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

@denelon denelon closed this as completed Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocking-Issue Blocking issue Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
Archived in project
Development

No branches or pull requests

2 participants