Winget not recognising an update is installed, and installs it every time I run update
Brief description of your issue
Winget list
Microsoft .NET SDK 9.0.204 (x64) Microsoft.DotNet.SDK.9 9.0.204 9.0.300 winget Microsoft .NET SDK 9.0.300 (x64) Microsoft.DotNet.SDK.9 9.0.300 winget
Every time use winget upgrade --all try to install Microsoft .NET SDK 9.0.300 (x64), but it is already installed. Please, fix this bug!.
Steps to reproduce
Install Microsoft .NET SDK 9.0.204 (x64) Upgrade with winget to 9.0.300 And infinite loop
Expected behavior
Detect intalled new version
Actual behavior
Not detected installed version
Environment
Winget info: Windows v1.10.390
Windows: Windows.Desktop v10.0.26100.4061
Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.25.390.0
We've found some similar issues:
- #5216 , similarity score: 82%
If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.
Note: You can give me feedback by 👍 or 👎 this comment.
If you're seeing two distinct entries in WinGet List, I suspect there may be another installation present (possibly a different architecture or locale). If you uninstall and run list to verify it's not present, a clean install should resolve the issue.
Can you share the output from the following command, and the log file?
winget list "Microsoft .NET SDK" --verbose-logs --logs
Nombre Id Versión Disponible Origen
Microsoft .NET SDK 9.0.300 (x64) from Visu… ARP\Machine\X64{FFA4A71D-5CB3-442E-AB2D-02… 9.3.25.25206 Microsoft .NET SDK 9.0.204 (x64) Microsoft.DotNet.SDK.9 9.0.204 9.0.300 winget Microsoft .NET SDK 9.0.300 (x64) Microsoft.DotNet.SDK.9 9.0.300 winget
Has two package with some architecture and some locale, but diferent version. (Microsoft .NET SDK -> visual studio supports multiples packages installed at time with diferent version).
This is a bug detecting a current package installed (this -> Microsoft .NET SDK 9.0.300 (x64) not is detected when check old version Microsoft .NET SDK 9.0.204 (x64))...
I have the same issue, and i do have multiple version of the sdk9 installed, which is normal (it's a requirement for certain capabilities / dependencies in Visual Studio).