[Package Issue] Microsoft.VisualStudio.2022.BuildTools: Upgrade fails with exit code 1
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start by reproducing the failure with winget upgrade Microsoft.VisualStudio.2022.BuildTools and inspect the version table showing installer version 4.11.24.2075 beside product version 17.14.44. The issue does not identify a source file or test, so trace how WinGet detects installed and available versions for this package and how it invokes the upgrade installer. Done means the versions are handled without confusion and the upgrade completes with exit code 0.
Written by the indexing model from the issue text.
Description
Relevant area(s)
WinGet CLI
Relevant command(s)
winget upgrade
Brief description of your issue
Microsoft.VisualStudio.2022.BuildTools displays a version mismatch/confusion (showing installer version 4.x alongside product version 17.x). When attempting to upgrade, the installation fails with exit code 1.
Steps to reproduce
- Open PowerShell or Command Prompt.
- Run
winget upgrade(or target the package directly:winget upgrade Microsoft.VisualStudio.2022.BuildTools). - Observe the output version details and the resulting installation failure.
Expected behavior
- Winget should correctly interpret the installed vs available versions of Visual Studio Build Tools without version conflicts.
- The upgrade process should execute and complete successfully with exit code
0.
Actual behavior
- Version table displays mixed versions:
Microsoft Visual Studio Installer Microsoft.VisualStudio.2022.BuildTools 4.11.24.2075 17.14.44
Environment
Gestionnaire de package Windows v1.29.380
© 2026 Microsoft. Tous droits réservés.
Windows: Windows.Desktop v10.0.26300.9818
Architecture du système : X64
Package : Microsoft.DesktopAppInstaller v1.29.380.0
Répertoires de WinGet
-----------------------------------------------------------------------------------------------------------------------
Journaux %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\Local…
Paramètres utilisateurs %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\Local…
Répertoire des liens portables (utilisateur) %LOCALAPPDATA%\Microsoft\WinGet\Links
Répertoire des liens portables (ordinateur) C:\Program Files\WinGet\Links
Racine de package portable (utilisateur) %LOCALAPPDATA%\Microsoft\WinGet\Packages
Racine du package portable C:\Program Files\WinGet\Packages
Racine de package portable (x86) C:\Program Files (x86)\WinGet\Packages
Téléchargements du programme d’installation D:\Users\me\Downloads
Modules de configuration %LOCALAPPDATA%\Microsoft\WinGet\Configuration\Modules
Liens
---------------------------------------------------------------------------------------------
Déclaration de confidentialité https://aka.ms/winget-privacy
Contrat de licence https://aka.ms/winget-license
Avis de tiers https://aka.ms/winget-3rdPartyNotice
Page d’accueil https://aka.ms/winget
Conditions générales du Windows Store https://www.microsoft.com/en-us/storedocs/terms-of-sale
Paramètre administrateur État
---------------------------------------------------
LocalManifestFiles Désactivé
BypassCertificatePinningForMicrosoftStore Désactivé
InstallerHashOverride Désactivé
LocalArchiveMalwareScanOverride Désactivé
ProxyCommandLineOptions Désactivé
ConfigurationProcessorPath Désactivé
DefaultProxy Désactivé
- Dominant language
- C++
- Stars
- 26.6k
- Forks
- 1.8k
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 41
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/winget-cli
-
Issue-Docs Needs-Triage
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
microsoft/winget-cli#6692 ·
Maintainers usually reply within 2 days
-
Issue-Docs Possible-Duplicate
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
microsoft/winget-cli#6493 · 1 comment ·
Maintainers usually reply within 2 days
-
Issue-Feature
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
microsoft/winget-cli#6427 ·
Maintainers usually reply within 2 days
-
Issue-Docs msstore
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
microsoft/winget-cli#6331 · 1 comment ·
Maintainers usually reply within 2 days
-
Command-Source Issue-Bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
microsoft/winget-cli#6148 ·
Maintainers usually reply within 2 days
All issues in microsoft/winget-cli
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
distante/esphome-components#50 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
feat
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 1/5 Under an hour Newbie friendliness 76/100
Maintainers usually reply within 1 day