Open 0ric1 opened 2 years ago
We usually don't put preview versions under the same ID, I don't know why that redist version is there. (@ItzLevvie, looks like you submitted that PR? https://github.com/microsoft/winget-pkgs/pull/34549)
That version of the .NET SDK is in stable though. https://github.com/microsoft/winget-cli/issues/476 should allow you to stop upgrades if you aren't ready to move to .NET 6.
The current dotnet version is 6.0.100 https://dotnet.microsoft.com/download/dotnet (I already have installed) but not 6.1.x - 6.1.x seems to be a preview version too.
VC++ Redist links were taken from https://github.com/abbodi1406/vcredist/blob/master/source_links/README.md, so I wasn't aware it was a preview version. EULA in the installer seems to be the same on both when installing, but I wouldn't mind splitting them out.
At the moment, there's no such thing as .NET 6.1, the team likely moved to developing .NET 7. Latest Production version of .NET 6.0 is displayed as 6.1.21.52711 in Control Panel instead of 6.0.100.
You can take a look at:
The official Microsoft link "Microsoft Visual C++ Redistributable Latest Supported Downloads" for the redistributables is : https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist
The official Microsoft link "Microsoft Visual C++ Redistributable Latest Supported Downloads" for the redistributables is : https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist
Yeah, I used to use that website before, but I found out that the links there for some the Visual C++ Redistributable which are older than 2019 are outdated and were missing critical security patches: https://github.com/microsoft/winget-pkgs/pull/31024, https://github.com/microsoft/winget-pkgs/pull/31025, https://github.com/microsoft/winget-pkgs/pull/31026, https://github.com/microsoft/winget-pkgs/pull/31027, https://github.com/microsoft/winget-pkgs/pull/31028, https://github.com/microsoft/winget-pkgs/pull/31029, so I decided to use https://github.com/abbodi1406/vcredist/blob/master/source_links/README.md which seems to be updated more frequently than the aka.ms links as the aka.ms links are updated manually by a human so sometimes the aka.ms links are behind compared to the Visual Studio links.
Judging by the links used in https://github.com/abbodi1406/vcredist/blob/master/source_links/README.md, I assume it was grabbed from Visual Studio compared to the aka.ms links, despite the InstallerSha256 being the same.
I'm guilty of not getting the aka.ms links updated myself. I'm going to start creating an Issue for RC builds to capture the tasks necessary including updating aka.ms links when a release is pushed. We're close to shipping the first 1.2 dev build as well. It's being internally validated now.
It seems that the original intent of this thread was to indicate that currently some winget upgrades cause a non-preview program to get updated to the latest version, which happens to be a preview version. I think the .NET issue was used as an example. The problem most likely being that some devs use the same app ID for their non-production channels.
Suggested Fix by OP: add a --preview option.
To extend on that a bit:
ie. winget upgrade --all --preview true, alphaonly # will only perform upgrade if alpha version available for DL. winget upgrade --all --preview true, alpha # will perform upgrade if version is alpha, beta, preview or production (including production). This option may have to limit to pre-production versions, since their can be some issues with upgrading from non-production to production in some cases. winget upgrade --all # upgrade same channel only. (production, non-production, doesn't matter)
anyhow, you all can probably best mesh that out.
This is related to:
Description of the new feature / enhancement
When running
winget upgrade
I get the following applications listed as not uptodate:Microsoft Visual C++ 2015-2022 Redistributable (x… Microsoft.VC++2015-2022Redist-x86 14.30.30704.0 14.31.30818.0 winget Microsoft Visual C++ 2015-2022 Redistributable (x… Microsoft.VC++2015-2022Redist-x64 14.30.30704.0 14.31.30818.0 winget Microsoft .NET SDK Microsoft.dotnet 5.4.321.52708 6.1.21.52711 winget
But these seem to be preview versions, e.g. Redistributable 14.31.30818.0 is shipped with Visual Studio 2022 17.1.0 Preview 1.0. I (and may be all other people too) don't want to install preview versions on a production system. A switch could be added to allow preview versions to be listed e.g.winget upgrade --preview
Thanks for the help, Andreas.Proposed technical implementation details
winget upgrade --preview