-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Upgrade doesn't work for Microsoft.VisualStudio.2019.BuildTools #1324
Comments
Visual Studio Installer version 2.11.13.53049 |
Updated build tools in the vs installer, same deal Microsoft Windows [Version 10.0.19043.1149]
(c) Microsoft Corporation. All rights reserved.
C:\Users\joelm>winget list build
Name Id Version Available Source
----------------------------------------------------------------------------------------------------
Visual Studio Build Tools 2019 Microsoft.VisualStudio.2019.BuildTools 16.10.4 16.10.31515.178 winget
C:\Users\joelm>winget upgrade Microsoft.VisualStudio.2019.BuildTools
Found Visual Studio Build Tools 2019 [Microsoft.VisualStudio.2019.BuildTools]
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licences to, third-party packages.
Downloading https://download.visualstudio.microsoft.com/download/pr/acfc792d-506b-4868-9924-aeedc61ae654/1778d923fd40c62c29f85cf4ef63a0c855a61c13b1dd68419bcda2cff38c984f/vs_BuildTools.exe
██████████████████████████████ 1.39 MB / 1.39 MB
Successfully verified installer hash
Starting package install...
Successfully installed
C:\Users\joelm>winget upgrade Microsoft.VisualStudio.2019.BuildTools
Found Visual Studio Build Tools 2019 [Microsoft.VisualStudio.2019.BuildTools]
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licences to, third-party packages.
Downloading https://download.visualstudio.microsoft.com/download/pr/acfc792d-506b-4868-9924-aeedc61ae654/1778d923fd40c62c29f85cf4ef63a0c855a61c13b1dd68419bcda2cff38c984f/vs_BuildTools.exe
██████████████████████████████ 1.39 MB / 1.39 MB
Successfully verified installer hash
Starting package install...
Successfully installed
C:\Users\joelm> |
It's because 16.10.31515.178 is 16.10.4, and we're using the build numbers instead of the real version number as listed in the Add and Remove Programs table because the Visual Studio team made a change to their versioning (they used to always use the build number, now they use the shorter number for some reason). We can't set it to the "real version number" since winget will think that the older versions with the larger build numbers are newer than the actual new versions with the smaller version numbers. We're waiting for clarification on from the VS team that this was an intentional change, and if that is the case I'll probably just set the old versions of Visual Studio to use their smaller build numbers, even if they won't match with their ARP table entries anymore. See microsoft/winget-pkgs#19389 for more info. TL;DR: Our metadata is wrong, you aren't getting an upgrade because you are up-to-date. |
I will follow up on the VS issue. |
Looks like the lion's share of the metadata fixes have been merged into microsoft/winget-pkgs:
Can you check again and see if it still wants you to upgrade? |
Fixed, thanks 👍 Microsoft Windows [Version 10.0.19043.1149]
(c) Microsoft Corporation. All rights reserved.
C:\Users\joelm>winget list build
Name Id Version
-----------------------------------------------------------------------------
Visual Studio Build Tools 2019 Microsoft.VisualStudio.2019.BuildTools 16.10.4
C:\Users\joelm> |
Brief description of your issue
I have Visual Studio Build Tools 2019 installed. When I try to use winget to upgrade it, it updates the Visual Studio Installer, but does not affect the Build Tools themselves, and after a 'successful' upgrade, it will still beileve they need upgrading.
Steps to reproduce
winget upgrade Microsoft.VisualStudio.2019.BuildTools
(orwinget upgrade --all
)winget upgrade Microsoft.VisualStudio.2019.BuildTools
again and you will see it was unsuccessfulExpected behavior
Build tools will be upgraded successfully, and running the command again will return
No applicable update found.
Actual behavior
Build tools are not upgraded, running the command again does the same thing over and over again
Environment
The text was updated successfully, but these errors were encountered: