Hi Garlin:
Here is the output:
C:\>winget upgrade --all --include-unknown
Name Id Version Available Source
--------------------------------------------------------------------------------
Microsoft .NET SDK 7.0.317 (x64) Microsoft.DotNet.SDK.7 7.0.317 7.0.410 winget
Microsoft .NET SDK 6.0.321 (x64) Microsoft.DotNet.SDK.6 6.0.321 6.0.423 winget
2 upgrades available.
(1/2) Found Microsoft .NET SDK 7.0 [Microsoft.DotNet.SDK.7] Version 7.0.410
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading
https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.410/dotnet-sdk-7.0.410-win-x64.exe
██████████████████████████████ 218 MB / 218 MB
Successfully verified installer hash
Starting package install...
Successfully installed
(2/2) Found Microsoft .NET SDK 6.0 [Microsoft.DotNet.SDK.6] Version 6.0.423
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading
https://dotnetcli.azureedge.net/dotnet/Sdk/6.0.423/dotnet-sdk-6.0.423-win-x64.exe
██████████████████████████████ 196 MB / 196 MB
Successfully verified installer hash
Starting package install...
Successfully installed
Notice that the message about "2 package(s) have version numbers that cannot be determined." has disappeared.
Here's something interesting, I tried to determine the version of ,NET SDK 6.0 using this command: winget show "Microsoft.DotNet.SDK.6"
Here is the output from that command:
Found Microsoft .NET SDK 6.0 [Microsoft.DotNet.SDK.6]
Version: 6.0.423
Publisher: Microsoft Corporation
Moniker: dotnet-sdk-6
Description: .NET is a free, cross-platform, open-source developer platform for building many different types of applications.
Homepage:
.NET | Build. Test. Deploy.
License: MIT
Tags:
.NET
.NET Core
dotnet
net
C#
csharp
F#
fsharp
VB
Visual Basic
SDK
Installer:
Installer Type: burn
Installer Url:
https://dotnetcli.azureedge.net/dotnet/Sdk/6.0.423/dotnet-sdk-6.0.423-win-x64.exe
Installer SHA256: 304ae842ba21ce5166827268591660fac6e29be9413587617c519fb3882f9104
Offline Distribution Supported: true
If I'm reading the above output correctly, doesn't it show the version to be 6.0.423, i.e. the version I expected it to be AFTER the upgrade.
But, if I run the upgrade a second time, it still tries to upgrade from the old version to the new version.
Very confusing, isn't it!!