-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
winget tries to upgrade .NET 5 Runtime over and over #2345
Comments
The issue with dotnet runtimes is due to there being multiple versions of the runtime installed side-by-side and is related to We have enhancements in Windows Package Manager 1.3 support for "AppsAndFeatures" data that will help in this scenario. |
Can you try with "--verbose-logs" and share the resulting logs? I'd also like to know which version of Windows Package Manager you're running. |
Hi @denelon, see attachments below. |
@exchange12rocks? Is this still happening? |
@denelon Yes:
|
I am also having this issue with different versions of the .NET runtime and winget. I have .NET 6.0.23 installed and winget would like me to upgrade it to 6.0.25. However, I already have that version installed as well. In any case, winget downloads and attempts to install 6.0.25 and then closes shortly after starting the install. If I try to upgrade with the the -id flag, I get the "No installed packages [...]" message. If I try to install with the id, the package is found, downloaded and tries to install. I have also found and ran the .NET Fix Repair tool, and it found no issues with my installed packages. Winget version v1.6.3421 |
To workaround this, set the architecture and install. |
@aaronliu0130 could you elaborate further? |
e.g. |
Brief description of your issue
I have two .NET runtimes installed side by side: 5 and 6
winget sees the 5.0.17 version and tries to upgrade it to 6.0.7, even though 6.0.7 is already installed on the machine.
Steps to reproduce
winget upgrade
Expected behavior
winget treats .NET Runtime 5 and 6 as two different applications and does not offer new .NET 6 versions for .NET 5.
Actual behavior
winget treats .NET Runtime 5 and 6 the same application, offering new .NET 6 versions as upgrades for .NET 5.
Environment
The text was updated successfully, but these errors were encountered: