microsoft / microsoft/winget-cli

Microsoft .NET SDK: Upgrade installs the packages, but still says updates are available

Open
#4,609 8 comments 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Command-Upgrade Issue-Bug
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Brief description of your issue

winget upgrade shows some Microsoft .NET SDK updates as available. Installed them using winget upgrade --all. Once installation is completed when running winget upgrade still shows updates.

image

NOTE: This is only happening for Microsoft .NET SDK

PS C:\Users\Jaliya> winget list dotnet
Name                                                   Id                                  Version                   Available Source
-------------------------------------------------------------------------------------------------------------------------------------
PowerShell 7-x64                                       Microsoft.PowerShell                7.4.3.0                             winget
PowerShell 7.3.1.0-x64                                 Microsoft.PowerShell                7.3.1.0                             winget
Microsoft .NET SDK 9.0.100-preview.5.24307.3 (x64)     Microsoft.DotNet.SDK.Preview        9.0.100-preview.5.24307.3           winget
Microsoft .NET SDK 8.0.206 (x64)                       Microsoft.DotNet.SDK.8              8.0.206                   8.0.302   winget
Microsoft .NET SDK 8.0.302 (x64)                       Microsoft.DotNet.SDK.8              8.0.302                             winget
Microsoft .NET SDK 8.0.106 (x64)                       Microsoft.DotNet.SDK.8              8.0.106                             winget
Microsoft .NET SDK 7.0.317 (x64)                       Microsoft.DotNet.SDK.7              7.0.317                   7.0.410   winget
Microsoft .NET SDK 7.0.410 (x64)                       Microsoft.DotNet.SDK.7              7.0.410                             winget
Microsoft .NET SDK 7.0.203 (x64)                       Microsoft.DotNet.SDK.7              7.0.203                             winget
Microsoft .NET SDK 7.0.120 (x64)                       Microsoft.DotNet.SDK.7              7.0.120                             winget
Microsoft .NET SDK 6.0.321 (x64)                       Microsoft.DotNet.SDK.6              6.0.321                   6.0.423   winget
Microsoft .NET SDK 6.0.423 (x64)                       Microsoft.DotNet.SDK.6              6.0.423                             winget
Microsoft .NET SDK 6.0.203 (x64)                       Microsoft.DotNet.SDK.6              6.0.203                             winget
Microsoft .NET SDK 5.0.408 (x64)                       Microsoft.DotNet.SDK.5              5.0.408                             winget
Microsoft .NET Core SDK 3.1.426 (x64)                  Microsoft.DotNet.SDK.3_1            3.1.426                             winget
Microsoft .NET Core SDK 2.2.207 (x64)                  Microsoft.DotNet.SDK.3_1            < 3.1.419                           winget
Microsoft .NET Runtime - 6.0.31 (x64)                  Microsoft.DotNet.Runtime.6          6.0.31                              winget
Microsoft .NET Core Runtime - 3.1.32 (x64)             Microsoft.DotNet.Runtime.3_1        3.1.32                              winget
Microsoft .NET Core Runtime - 2.1.30 (x64)             Microsoft.DotNet.Runtime.3_1        < 3.1.25                            winget
Microsoft Windows Desktop Runtime - 6.0.31 (x64)       Microsoft.DotNet.DesktopRuntime.6   6.0.31                              winget
Microsoft Windows Desktop Runtime - 5.0.17 (x86)       Microsoft.DotNet.DesktopRuntime.5   5.0.17                              winget
Microsoft Windows Desktop Runtime - 3.1.32 (x86)       Microsoft.DotNet.DesktopRuntime.3_1 3.1.32                              winget
Microsoft ASP.NET Core 5.0.17 - Shared Framework (x86) Microsoft.DotNet.AspNetCore.5       5.0.17                              winget
Microsoft ASP.NET Core 3.1.32 - Shared Framework (x86) Microsoft.DotNet.AspNetCore.3_1     3.1.32                              winget
Steps to reproduce
winget upgrade
winget upgrade --all
winget upgrade
Expected behavior

Once updates are installed, it shouldn't be displayed again as available.

Actual behavior

Once updates are installed, still it displays updates are available.

Environment
PS C:\Users\Jaliya> winget --info
Windows Package Manager v1.8.1791
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22621.3810
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.23.1791.0

Winget Directories
-------------------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages
Installer Downloads                %USERPROFILE%\Downloads

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
ProxyCommandLineOptions                   Disabled
DefaultProxy                              Disabled

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported sequence with winget upgrade, winget upgrade --all, and winget upgrade, then compare the installed and available Microsoft .NET SDK entries from winget list dotnet. Trace how the CLI matches installed SDK versions to available upgrades. Done means successfully installed SDK updates are no longer reported as available on the next upgrade check.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.