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

DotNet SDK and Windows SDK are up to date, but winget thinks otherwise

Open WillPittenger opened this issue 1 year ago • 1 comments

Brief description of your issue

I have Microsoft.DotNet.SDK.6 and Microsoft.WindowsSDK installed. Both are up to date. However, as shown below, winget thinks otherwise. It seems to think both are on older versions.

Steps to reproduce

I can't really provide a detailed list of steps. I got to the versions shown below somehow, possibly months ago. So these are assuming you have the current version installed for both.

  1. Install Microsoft.DotNet.SDK.6 version 6.0.404 and Microsoft.WindowsSDK version 10.0.22621.2.
  2. Run winget upgrade.
  3. Does it list either product as needing upgraded?

Expected behavior

I'd expect it to tell me neither product needs to be upgraded.

Actual behavior

PS C:\> winget upgrade
Name                                                      Id                     Version        Available    Source
-------------------------------------------------------------------------------------------------------------------
Microsoft .NET SDK 6.0.307 (x64)                          Microsoft.DotNet.SDK.6 6.0.307        6.0.404      winget
Windows Software Development Kit - Windows 10.0.22000.832 Microsoft.WindowsSDK   10.0.22000.832 10.0.22621.2 winget
2 upgrades available.
PS C:\> winget list microsoft.windowssdk
Name                                                      Id                   Version      Source
---------------------------------------------------------------------------------------------------
Windows Software Development Kit - Windows 10.0.22621.755 Microsoft.WindowsSDK 10.0.22621.2 winget
PS C:\> winget list microsoft.dotnet.sdk.6
Name                             Id                     Version Source
-----------------------------------------------------------------------
Microsoft .NET SDK 6.0.404 (x64) Microsoft.DotNet.SDK.6 6.0.404 winget

Environment

Windows Package Manager v1.3.2691
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22621.963
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.2691.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

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

WillPittenger avatar Dec 19 '22 02:12 WillPittenger

What do you get if you run winget list dotnet?

I'm curious if more than one version is installed or not.

denelon avatar Feb 22 '23 00:02 denelon

@WillPittenger this issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.

What do you get if you run winget list dotnet?

C:\Windows\system32>winget upgrade
Name                                             ID                                Version Verfügbar Quelle
-----------------------------------------------------------------------------------------------------------
Microsoft Windows Desktop Runtime - 6.0.19 (x64) Microsoft.DotNet.DesktopRuntime.7 < 7.0.0 7.0.8     winget
1 Aktualisierungen verfügbar.

C:\Windows\system32>winget list dotnet
Name                                             ID                                Version Quelle
--------------------------------------------------------------------------------------------------
Microsoft Windows Desktop Runtime - 7.0.8 (x64)  Microsoft.DotNet.DesktopRuntime.7 7.0.8   winget
Microsoft Windows Desktop Runtime - 6.0.19 (x64) Microsoft.DotNet.DesktopRuntime.6 6.0.19  winget

I have latest 6 and 7 installed but winget stzill thinks I have an missing update.

MagicAndre1981 avatar Jun 25 '23 21:06 MagicAndre1981

What do you get if you run winget list dotnet?

C:\Windows\system32>winget upgrade
Name                                             ID                                Version Verfügbar Quelle
-----------------------------------------------------------------------------------------------------------
Microsoft Windows Desktop Runtime - 6.0.19 (x64) Microsoft.DotNet.DesktopRuntime.7 < 7.0.0 7.0.8     winget
1 Aktualisierungen verfügbar.

C:\Windows\system32>winget list dotnet
Name                                             ID                                Version Quelle
--------------------------------------------------------------------------------------------------
Microsoft Windows Desktop Runtime - 7.0.8 (x64)  Microsoft.DotNet.DesktopRuntime.7 7.0.8   winget
Microsoft Windows Desktop Runtime - 6.0.19 (x64) Microsoft.DotNet.DesktopRuntime.6 6.0.19  winget

I have latest 6 and 7 installed but winget stzill thinks I have an missing update.

same issue, after running winget upgrade Microsoft.DotNet.DesktopRuntime.7, the issue seems gone.

kid1412621 avatar Jul 05 '23 15:07 kid1412621

same issue, after running winget upgrade Microsoft.DotNet.DesktopRuntime.7, the issue seems gone.

Not for me:

C:\Windows\system32>winget upgrade Microsoft.DotNet.DesktopRuntime.7
No available upgrade found.
No newer package versions are available from the configured sources.

C:\Windows\system32>winget upgrade
Name                                             ID                                Version Verfügbar Quelle
-----------------------------------------------------------------------------------------------------------
Microsoft Windows Desktop Runtime - 6.0.19 (x64) Microsoft.DotNet.DesktopRuntime.7 < 7.0.0 7.0.8     winget
1 Aktualisierungen verfügbar.

MagicAndre1981 avatar Jul 05 '23 16:07 MagicAndre1981

same issue, after running winget upgrade Microsoft.DotNet.DesktopRuntime.7, the issue seems gone.

Not for me:

C:\Windows\system32>winget upgrade Microsoft.DotNet.DesktopRuntime.7
No available upgrade found.
No newer package versions are available from the configured sources.

C:\Windows\system32>winget upgrade
Name                                             ID                                Version Verfügbar Quelle
-----------------------------------------------------------------------------------------------------------
Microsoft Windows Desktop Runtime - 6.0.19 (x64) Microsoft.DotNet.DesktopRuntime.7 < 7.0.0 7.0.8     winget
1 Aktualisierungen verfügbar.
PS C:\> winget upgrade
Name                                             Id                                Version Available Source
-----------------------------------------------------------------------------------------------------------
Microsoft ASP.NET Core 6.0.18 - Shared Framewor… Microsoft.DotNet.AspNetCore.6     6.0.18  6.0.19    winget
Microsoft Windows Desktop Runtime - 6.0.18 (x86) Microsoft.DotNet.DesktopRuntime.6 6.0.18  6.0.19    winget
Microsoft .NET SDK 6.0.313 (x64)                 Microsoft.DotNet.SDK.6            6.0.313 6.0.411   winget
3 upgrades available.
PS C:\> winget list microsoft.dotnet.desktopruntime.6
Name                                             Id                                Version Source
--------------------------------------------------------------------------------------------------
Microsoft Windows Desktop Runtime - 6.0.19 (x64) Microsoft.DotNet.DesktopRuntime.6 6.0.19  winget
PS C:\> winget list microsoft.dotnet.aspnetcore.6
Name                                                   Id                            Version Source
----------------------------------------------------------------------------------------------------
Microsoft ASP.NET Core 6.0.19 - Shared Framework (x64) Microsoft.DotNet.AspNetCore.6 6.0.19  winget
PS C:\> winget list microsoft.dotnet.dotnet.sdk.6
No installed package found matching input criteria.

WillPittenger avatar Jul 07 '23 11:07 WillPittenger