Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dependency Issue]: Microsoft.DotNet.DesktopRuntime (6/7/8) #150288

Open
2 tasks done
drshtmstry opened this issue Apr 20, 2024 · 1 comment
Open
2 tasks done

[Dependency Issue]: Microsoft.DotNet.DesktopRuntime (6/7/8) #150288

drshtmstry opened this issue Apr 20, 2024 · 1 comment
Labels
Area-Client These issues require changes to the client. Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@drshtmstry
Copy link
Contributor

drshtmstry commented Apr 20, 2024

Please confirm these before moving forward

  • I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
  • 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

Whenever a DotNet DesktopRuntime dependency is required, during package install, if any other version is installed already then the required DotNet dependency is not installed.
My laptop already had Microsoft.DotNet.DesktopRuntime.7 but when I installed HandBrake it required Microsoft.DotNet.DesktopRuntime.6 which was not installed by winget.
Similarly when I installed WHONET.AMRIE which requires Microsoft.DotNet.DesktopRuntime.8 was not installed.

There seems to be matching problem with Microsoft.DotNet.DesktopRuntime packages. They are separate packages, not different versions of same package. Different programs require different DotNet packages so they need to be installed side-by-side. Winget seems to not understand that.

Steps to reproduce

winget install handbrake or winget install WHONET.AMRIE

Actual behavior

Does not install dependency.

When manually try to install

PS C:\Users\drsht> winget install Microsoft.DotNet.DesktopRuntime.6
Found an existing package already installed. Trying to upgrade the installed package...
No available upgrade found.
No newer package versions are available from the configured sources.

Expected behavior

Install both package and its dependency.

Environment

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

Windows: Windows.Desktop v10.0.22631.3447
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.22.10861.0

Winget Directories
-----------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
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                        Enabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Enabled

Screenshots and Logs

Screenshot 2024-04-20 135904
Screenshot 2024-04-20 135748
Screenshot 2024-04-20 135759

@drshtmstry drshtmstry added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Apr 20, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage This work item needs to be triaged by a member of the core team. label Apr 20, 2024
@Trenly
Copy link
Contributor

Trenly commented Apr 20, 2024

This is a known issue with the matching logic in the cli

@microsoft-github-policy-service microsoft-github-policy-service bot added Area-Client These issues require changes to the client. and removed Needs-Triage This work item needs to be triaged by a member of the core team. labels Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Client These issues require changes to the client. Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

2 participants