You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wrong .NET SDK version number when using winget upgrade #3070
winget list does correctly detect the versions of the .NET SDK that I have installed by using the manifest field which matches version from Apps & Features with actual version numbers.
PS C:\Users\jjpfs> winget list dotnet
Name ID Version Source
-----------------------------------------------------------------------
Microsoft .NET SDK 7.0.201 (x64) Microsoft.DotNet.SDK.7 7.0.201 winget
Microsoft .NET SDK 6.0.406 (x64) Microsoft.DotNet.SDK.6 6.0.406 winget
However, when I run winget upgrade, it offers an update and mixes up .NET 6 and 7 as you can see by the different name and ID.
PS C:\Users\jjpfs> winget upgrade
Name ID Version Available Source
----------------------------------------------------------------------------------
Microsoft .NET SDK 6.0.406 (x64) Microsoft.DotNet.SDK.7 < 7.0.100 7.0.201 winget
Steps to reproduce
Have different .NET SDKs installed and run winget upgrade
Expected behavior
Show the right version number and don't offer an update
Actual behavior
Shows wrong version number and offers an update
Environment
Windows 11
Winget v1.5.441-preview
Reacted by Marcus Mangelsdorf, Luca Hostettler and Arian van der Pijl
No worries. We've identified a fix for a few scenarios. I'm trying to map "Area-Matching" to help group these related issues together so we can see which ones are addressed.
No worries. We've identified a fix for a few scenarios. I'm trying to map "Area-Matching" to help group these related issues together so we can see which ones are addressed.
Also seems to happen for a PowerShell Preview, currently my PowerShell shows:
This is another issue and would be fixed once below PRs get merged. I'll mark this comment as off-topic once these get merged; if you still have problems I'd say we open a new issue for it.
It might be worth looking into more feedback, cause it seems to be working on my PC now too! Did you change anything with those packages that could have done this?
Activity
denelon commentedon Mar 13, 2023
Related to:
CanePlayz commentedon Mar 13, 2023
Oh, sorry, I didn't find those other issues because I was searching for .NET SKD and both of those issues talk about the runtime.
denelon commentedon Mar 13, 2023
No worries. We've identified a fix for a few scenarios. I'm trying to map "Area-Matching" to help group these related issues together so we can see which ones are addressed.
CanePlayz commentedon Mar 13, 2023
👍
BrandonWanHuanSheng commentedon Mar 14, 2023
Some folder left behind after upgrading to 7.0.201
BrandonWanHuanSheng commentedon Mar 14, 2023
CanePlayz commentedon Mar 25, 2023
Also seems to happen for a PowerShell Preview, currently my PowerShell shows:
mdanish-kh commentedon Mar 26, 2023
CanePlayz commentedon Mar 26, 2023
Okay, thanks 👍
CanePlayz commentedon Jul 26, 2023
A bit more information:
When running
winget listit recognized all SDKs asMicrosoft.DotNet.SDK.7:MagicAndre1981 commentedon Jul 27, 2023
Jacob Pfundstein (@CanePlayz) same like for me with the .net runtime where list shows IDs correctly, but upgrade command treats 6 runtime as 7 runtime.
CanePlayz commentedon Jul 27, 2023
Yeah, it's all just a big mess right now and all over the place.
CanePlayz commentedon Aug 2, 2023
Interestingly, it works on my Surface:
CanePlayz commentedon Aug 6, 2023
It might be worth looking into more feedback, cause it seems to be working on my PC now too! Did you change anything with those packages that could have done this?
MagicAndre1981 commentedon Aug 9, 2023
for me the issue with Dotnet Runtime is still the same even after this weeks patchday.
CanePlayz commentedon Feb 6, 2024
How about now?
MagicAndre1981 commentedon Feb 6, 2024
since November 2023 and installing .net 8 it works for me on that 1 laptop that suffered the issue for over 1 year.
CanePlayz commentedon Feb 6, 2024
Great, then I will close this issue.
MagicAndre1981 commentedon Feb 6, 2024
doe it work for you now, too for the SDKs?
CanePlayz commentedon Feb 6, 2024
Yup, been working for quite a while now
MagicAndre1981 commentedon Feb 22, 2024
just noticed that on one system I see the SDK mismatch again where 6.0.419 is detected as Mirosoft.DotNet.SDK.7 and offers 7.0.406 as upgrade