winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Winget not recognising an update is installed, and installs it every time I run update

Open NewPublicUser opened this issue 7 months ago • 4 comments

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

NewPublicUser avatar May 14 '25 16:05 NewPublicUser

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.

similar-issues-ai[bot] avatar May 14 '25 16:05 similar-issues-ai[bot]

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

denelon avatar May 19 '25 19:05 denelon

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

NewPublicUser avatar May 19 '25 19:05 NewPublicUser

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

sebbu2 avatar Jun 05 '25 12:06 sebbu2