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

DotNet 8 dependencies not installed by winget when other DotNet 6/7 are installed #145850

Open
drshtmstry opened this issue Mar 21, 2024 · 2 comments

Comments

@drshtmstry
Copy link
Contributor

drshtmstry commented Mar 21, 2024

Brief description of your issue

When installing WHONET.AMRIE package, Microsoft.DotNet.DesktopRuntime.8 dependency is not installed.

Steps to reproduce

winget install WHONET.AMRIE

Expected behavior

Install package & required dependency

Actual behavior

Only package is installed which does not function without dependency.
Terminal showing that dependency is not installed automatically. In next command I installed it manually when program failed to open.

314926536-5d9fb2a1-0e20-4b4b-bdd8-8f0b03f13dc8 - Copy
Screenshot 2024-03-21 092747
Screenshot 2024-03-21 092813
314926536-5d9fb2a1-0e20-4b4b-bdd8-8f0b03f13dc8

Environment

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

Windows: Windows.Desktop v10.0.22631.3296
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.22.10661.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
@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 Mar 21, 2024
@denelon denelon transferred this issue from microsoft/winget-cli Mar 21, 2024
@stephengillie stephengillie added Help-Wanted This is a good candidate work item from the community. Package-Update This package needs to be updated and removed Needs-Triage This work item needs to be triaged by a member of the core team. labels Mar 22, 2024
@stephengillie
Copy link
Collaborator

These appear to be present int he most recent PR: https://github.com/microsoft/winget-pkgs/pull/139824/files

@stephengillie stephengillie removed Help-Wanted This is a good candidate work item from the community. Package-Update This package needs to be updated labels Mar 22, 2024
@drshtmstry
Copy link
Contributor Author

drshtmstry commented Mar 26, 2024

@stephengillie I think the real issue is that if either DotNet 6 or 7 are installed then winget does not install DotNet 8 even if it is mentioned as required dependency.
You can see that in last screenshot (I manually installed DotNet 8 because it was not installed by winget)

PS C:\Users\drsht> winget install Microsoft.DotNet.DesktopRuntime.8
Found an existing package already installed. Trying to upgrade the installed package...
Found Microsoft .NET Windows Desktop Runtime 8.0 [Microsoft.DotNet.DesktopRuntime.8] Version 8.0.3
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
https://dotnetcli.azureedge.net/dotnet/WindowsDesktop/8.0.3/ windowsdesktop-runtime-8.0.3-win-x64. exe
Downloading
55.8 MB / 55.8 MB
Successfully verified installer hash
Starting package install...
Successfully installed
PS C: \Users\drsht>

See this line (It is trying to upgrade a package which is not installed, but similar package DotNet 7 was installed.)

Found an existing package already installed. Trying to upgrade the installed package...

@drshtmstry drshtmstry changed the title Microsoft.DotNet.DesktopRuntime.8 dependencies not installed DotNet 8 dependencies not installed by winget when other DotNet 6/7 are installed Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants