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

[Misdetech of the version]: Microsoft.DotNet.DesktopRuntime.6

Open TheBossMagnus opened this issue 2 years ago • 54 comments

Please confirm these before moving forward

  • [X] I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
  • [X] I have not been informed if the issue is resolved in a preview version of the winget client.

Category of the issue

Other

Brief description of your issue

The version detected by Winget is 6.0.5 Anyway, the installed and lastest is 6.0.7 image

Steps to reproduce

..

Actual behavior

If i upgrade the app get reinstalled for no reason

Expected behavior

..

Environment

Windows: Windows.Desktop v10.0.22621.317
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.2091.0

Screenshots and Logs

WinGet-2022-07-27-16-58-26.048.log WinGet-2022-08-01-16-18-59.865.log

TheBossMagnus avatar Aug 01 '22 14:08 TheBossMagnus

if you winget list .NET are both versions present?

denelon avatar Aug 01 '22 14:08 denelon

no one is listed image

TheBossMagnus avatar Aug 01 '22 14:08 TheBossMagnus

I missed the "<" indicating "less than 6.0.5". We didn't have a manifest for the version installed on the system, so it was determined to be less than the earliest manifest. I'm not sure why 6.0.17 isn't showing up in list.

denelon avatar Aug 01 '22 15:08 denelon

@mthalman do you have any ideas on this one?

denelon avatar Aug 01 '22 15:08 denelon

Be aware of the difference in major version here between what is installed and the upgrade version. It's showing 5.0.17 as installed and 6.0.7 as the upgrade version. Those are different major versions. It shouldn't attempt to recognize that as an upgrade because they have different package IDs: Microsoft.DotNet.DesktopRuntime.5 versus Microsoft.DotNet.DesktopRuntime.6.

@denelon - Why would it be crossing package IDs like this?

mthalman avatar Aug 01 '22 15:08 mthalman

It's likely that we don't have the manifests for the older versions with the "AppsAndFeatures" keys, so heuristics are trying to detect which package might match. @johnMcPMS can you confirm or deny?

denelon avatar Aug 01 '22 15:08 denelon

There is a manifest for the 5.0.17 version: https://github.com/microsoft/winget-pkgs/blob/master/manifests/m/Microsoft/DotNet/DesktopRuntime/5/5.0.17/Microsoft.DotNet.DesktopRuntime.5.installer.yaml. It was the one and only version of it that was published before becoming EOL.

mthalman avatar Aug 01 '22 15:08 mthalman

no one is listed

What about under winget list "Desktop Runtime"?

Trenly avatar Aug 01 '22 19:08 Trenly

no one is listed

What about under winget list "Desktop Runtime"?

image image

TheBossMagnus avatar Aug 02 '22 07:08 TheBossMagnus

I'm wondering if this is an artifact from before the packages were split out into the new identifiers. @THEBOSSMAGNUS - Can you try manually uninstalling the desktop runtime 5, then re-installing it using winget install Microsoft.DotNet.DesktopRuntime.5

Trenly avatar Aug 02 '22 16:08 Trenly

I'm wondering if this is an artifact from before the packages were split out into the new identifiers. @THEBOSSMAGNUS - Can you try manually uninstalling the desktop runtime 5, then re-installing it using winget install Microsoft.DotNet.DesktopRuntime.5

fixed image

TheBossMagnus avatar Aug 02 '22 17:08 TheBossMagnus

Great call @Trenly!

denelon avatar Aug 02 '22 17:08 denelon

Sorry for reopening, but, as you can see, the issues repeat appearing for each update. image

TheBossMagnus avatar Aug 10 '22 09:08 TheBossMagnus

Sorry for reopening, but, as you can see, the issues repeat appearing for each update. image

I think that is a different issue entirely. If you look closely, it is downloading and installing the x64 package, when it is the x86 package that is reporting an upgrade is available. This new behavior seems to be very similar to microsoft/winget-pkgs#2243

As a workaround, try running winget upgrade Microsoft.Dotnet.Runtime.6 --architecture x86

Trenly avatar Aug 10 '22 11:08 Trenly

image

TheBossMagnus avatar Aug 10 '22 12:08 TheBossMagnus

image

maybe install instead of upgrade? Forgot upgrade doesn't have the --architecture switch

Trenly avatar Aug 10 '22 13:08 Trenly

image Same as before.

TheBossMagnus avatar Aug 10 '22 18:08 TheBossMagnus

image Same as before.

Oops; Looks like I messed up the command itself facepalm. It isn’t Microsoft.DotNet.Runtime.6, it's Microsoft.DotNet.DesktopRuntime.6

Trenly avatar Aug 10 '22 18:08 Trenly

Related to:

  • https://github.com/microsoft/winget-cli/issues/2129

denelon avatar Aug 10 '22 19:08 denelon

Sorry for the late response... I executed winget install Microsoft.Dotnet.DeskTopRuntime.6 --architecture x86 and it no longer appears on winget upgrade.

image Now I'm unable to uninstall Microsoft.DotNet.Runtime.6 package. It appears in List and upgrade. Also, have the seme issue of desktop runtime (Keep appearing in winget update).

TheBossMagnus avatar Aug 15 '22 11:08 TheBossMagnus

I'm having a similar problem – winget is mixing up two completely different versions of .NET runtime, I have both in their latest versions (3.1.28 and 6.0.8 respectively):

λ winget upgrade
Name                                             Id                                Version      Available   Source
------------------------------------------------------------------------------------------------------------------
MultiCommander (x64)                             MathiasSvensson.MultiCommander    11.4.0.2831  11.5.0.2842 winget
VeraCrypt                                        IDRIX.VeraCrypt                   1.24-Update7 1.25.9      winget
7-Zip 21.07 (x64 edition)                        7zip.7zip                         21.07.00.0   22.01       winget
Microsoft Windows Desktop Runtime - 3.1.28 (x64) Microsoft.DotNet.DesktopRuntime.6 < 6.0.5      6.0.8       winget
MSYS2 64bit                                      msys2.msys2                       20200903     20220603    winget
5 upgrades available.```

finn-cz avatar Aug 17 '22 05:08 finn-cz

I have the same issue with @finn-cz :

PS C:\Windows\system32> winget list .NET
名稱                                                  識別碼                                 版本          可用  來源
-----------------------------------------------------------------------------------------------------------------------
Microsoft ASP.NET Core 6.0.8 - Shared Framework (x64) Microsoft.DotNet.AspNetCore.6          6.0.8               winget
paint.net                                             {31D05AC5-4242-433C-A002-9DB22D740F8C} 4.3.11
Microsoft .NET SDK 6.0.400 (x64) from Visual Studio   {E90155B5-8B75-4892-A27D-D85D131A8E43} 6.4.22.37103
Microsoft .NET Core Runtime - 3.1.28 (x64)            Microsoft.DotNet.AspNetCore.6          < 6.0.5       6.0.8 winget
Microsoft .NET SDK 6.0.303 (x64)                      {d05385f1-b9cc-4bbd-aa12-f6b5e6f0fe38} 6.3.322.36818
Microsoft ASP.NET Core 6.0.8 - Shared Framework (x86) Microsoft.DotNet.AspNetCore.6          6.0.8               winget
PS C:\Windows\system32> winget upgrade
名稱                                       識別碼                        版本    可用  來源
---------------------------------------------------------------------------------------------
Microsoft .NET Core Runtime - 3.1.28 (x64) Microsoft.DotNet.AspNetCore.6 < 6.0.5 6.0.8 winget
1 有可用的升級。

Besides I also had the issue that winget trying to upgrade Microsoft ASP.NET Core 6.0.8 - Shared Framework (x86) by downloading x64 version. I solved it by downloading and installing x86 version manually.

Since some old projects may need 3.x, uninstall is not an option.

vinixwu avatar Sep 13 '22 09:09 vinixwu

I'm also facing something around this:

PS C:\Windows\system32> winget list .NET
Name                                                   Id                                  Version    Source
-------------------------------------------------------------------------------------------------------------
Microsoft .NET Runtime - 7.0.0 (x64)                   Microsoft.DotNet.Runtime.7          7.0.0      winget
Microsoft ASP.NET Core 5.0.17 - Shared Framework (x64) Microsoft.DotNet.AspNetCore.5       5.0.17     winget
Microsoft Windows Desktop Runtime - 7.0.0 (x64)        Microsoft.DotNet.DesktopRuntime.7   7.0.0      winget
Microsoft Windows Desktop Runtime - 6.0.11 (x64)       Microsoft.DotNet.DesktopRuntime.6   6.0.11     winget
Microsoft Windows Desktop Runtime - 5.0.17 (x64)       Microsoft.DotNet.DesktopRuntime.5   5.0.17     winget
Microsoft Windows Desktop Runtime - 3.1.31 (x64)       Microsoft.DotNet.DesktopRuntime.3_1 3.1.31     winget

but winget upgrade and winget list "Desktop Runtime" show this:

PS C:\Windows\system32> winget list "Desktop Runtime"
Name                                             Id                                Version Available Source
-----------------------------------------------------------------------------------------------------------
Microsoft Windows Desktop Runtime - 7.0.0 (x64)  Microsoft.DotNet.DesktopRuntime.7 7.0.0             winget
Microsoft Windows Desktop Runtime - 5.0.17 (x64) Microsoft.DotNet.DesktopRuntime.7 < 7.0.0 7.0.0     winget
Microsoft Windows Desktop Runtime - 3.1.31 (x64) Microsoft.DotNet.DesktopRuntime.7 < 7.0.0 7.0.0     winget
Microsoft Windows Desktop Runtime - 6.0.11 (x64) Microsoft.DotNet.DesktopRuntime.7 < 7.0.0 7.0.0     winget
PS C:\Windows\system32> winget upgrade
Name                                             Id                                Version Available     Source
---------------------------------------------------------------------------------------------------------------
Microsoft Windows Desktop Runtime - 5.0.17 (x64) Microsoft.DotNet.DesktopRuntime.7 < 7.0.0 7.0.0         winget
Microsoft Windows Desktop Runtime - 3.1.31 (x64) Microsoft.DotNet.DesktopRuntime.7 < 7.0.0 7.0.0         winget
Microsoft Windows Desktop Runtime - 6.0.11 (x64) Microsoft.DotNet.DesktopRuntime.7 < 7.0.0 7.0.0         winget
3 upgrades available.
3 package(s) have version numbers that cannot be determined. Use "--include-unknown" to see all results.

sanyer avatar Dec 01 '22 19:12 sanyer

is this issue that i am having related ? image

Winget again and again keep showing update for DesktopRuntime in the screenshot evenafter updating them. Currently i have updated then 5 times.

KAGEYAM4 avatar Dec 18 '22 18:12 KAGEYAM4

I can confirm that this issue is still present whenever .NET updates are installed through Windows Update rather than winget. This is what my installation currently shows:

winget upgrade
Name                                             Id                                Version Available Source
-----------------------------------------------------------------------------------------------------------
Microsoft Windows Desktop Runtime - 3.1.32 (x64) Microsoft.DotNet.DesktopRuntime.7 < 7.0.0 7.0.3     winget
Microsoft Windows Desktop Runtime - 5.0.17 (x64) Microsoft.DotNet.DesktopRuntime.7 < 7.0.0 7.0.3     winget
Microsoft Windows Desktop Runtime - 3.1.32 (x86) Microsoft.DotNet.DesktopRuntime.7 < 7.0.0 7.0.3     winget
Microsoft Windows Desktop Runtime - 6.0.14 (x86) Microsoft.DotNet.DesktopRuntime.7 < 7.0.0 7.0.3     winget
Microsoft Windows Desktop Runtime - 6.0.14 (x64) Microsoft.DotNet.DesktopRuntime.7 < 7.0.0 7.0.3     winget

As you can see, the older .NET runtimes are misidentified as Microsoft.DotNet.DesktopRuntime.7 when they should've been detected as Microsoft.DotNet.DesktopRuntime.6, Microsoft.DotNet.DesktopRuntime.5, etc.

Additionally,

winget list dotnet
Name                                             Id                                Version Source
--------------------------------------------------------------------------------------------------
Microsoft Windows Desktop Runtime - 5.0.17 (x64) Microsoft.DotNet.DesktopRuntime.5 5.0.17  winget
winget list 'desktop runtime'
Name                                             Id                                Version Available Source
-----------------------------------------------------------------------------------------------------------
Microsoft Windows Desktop Runtime - 7.0.3 (x64)  Microsoft.DotNet.DesktopRuntime.7 7.0.3             winget
Microsoft Windows Desktop Runtime - 3.1.32 (x64) Microsoft.DotNet.DesktopRuntime.7 < 7.0.0 7.0.3     winget
Microsoft Windows Desktop Runtime - 5.0.17 (x64) Microsoft.DotNet.DesktopRuntime.7 < 7.0.0 7.0.3     winget
Microsoft Windows Desktop Runtime - 3.1.32 (x86) Microsoft.DotNet.DesktopRuntime.7 < 7.0.0 7.0.3     winget
Microsoft Windows Desktop Runtime - 6.0.14 (x86) Microsoft.DotNet.DesktopRuntime.7 < 7.0.0 7.0.3     winget
Microsoft Windows Desktop Runtime - 6.0.14 (x64) Microsoft.DotNet.DesktopRuntime.7 < 7.0.0 7.0.3     winget
Microsoft Windows Desktop Runtime - 7.0.3 (x86)  Microsoft.DotNet.DesktopRuntime.7 7.0.3             winget

vulpicastor avatar Feb 22 '23 19:02 vulpicastor

@denelon - this is for winget-cli, Area-matching

Trenly avatar Feb 22 '23 20:02 Trenly

Happens again. All my DesktopRuntime versions are recognized as Microsoft.DotNet.DesktopRuntime.6.

treysis avatar Jun 23 '23 19:06 treysis

Happens again. All my DesktopRuntime versions are recognized as Microsoft.DotNet.DesktopRuntime.6.

Same, bc it got updated

TheBossMagnus avatar Jun 23 '23 19:06 TheBossMagnus

winget list Desktop
-----------------------------------------------------------------------------------------------------------------------------------
Microsoft Windows Desktop Runtime - 5.0.17 (x86)          Microsoft.DotNet.DesktopRuntime.6           < 6.0.5                 6.0.19   winget
Microsoft Windows Desktop Runtime - 8.0.0 Preview 5 (x86) Microsoft.DotNet.DesktopRuntime.Preview     8.0.0-preview.5.23302.2          winget
Microsoft Windows Desktop Runtime - 3.1.32 (x64)          Microsoft.DotNet.DesktopRuntime.6           < 6.0.5                 6.0.19   winget
Microsoft Windows Desktop Runtime - 6.0.19 (x86)          Microsoft.DotNet.DesktopRuntime.6           6.0.19                           winget
Microsoft Windows Desktop Runtime - 5.0.17 (x64)          Microsoft.DotNet.DesktopRuntime.6           < 6.0.5                 6.0.19   winget
Microsoft Windows Desktop Runtime - 8.0.0 Preview 5 (x64) Microsoft.DotNet.DesktopRuntime.Preview     8.0.0-preview.5.23302.2          winget
Microsoft Windows Desktop Runtime - 3.1.32 (x86)          Microsoft.DotNet.DesktopRuntime.6           < 6.0.5                 6.0.19   winget
Microsoft Windows Desktop Runtime - 7.0.8 (x86)           Microsoft.DotNet.DesktopRuntime.6           > 6.0.19                         winget
Microsoft Windows Desktop Runtime - 6.0.19 (x64)          Microsoft.DotNet.DesktopRuntime.6           6.0.19                           winget
Microsoft Windows Desktop Runtime - 7.0.8 (x64)           Microsoft.DotNet.DesktopRuntime.6           > 6.0.19                         winget

Same boat.

de-served avatar Jul 03 '23 03:07 de-served

Happens again. All my DesktopRuntime versions are recognized as Microsoft.DotNet.DesktopRuntime.6.

I also see always an upgrade, but 6.0.20 is now latest 6 version:

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

List shows correct 6 and 7 identifier:

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

But on a different Window 10 system it works fine

MagicAndre1981 avatar Jul 18 '23 15:07 MagicAndre1981