[Package Issue] Microsoft.VisualStudio.2022.BuildTools: Upgrade fails with exit code 1

Offen
#6,666 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
cpp
Bereich
backend, cli

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Command-Upgrade Issue-Bug
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
  1. Open PowerShell or Command Prompt.
  2. Run winget upgrade (or target the package directly: winget upgrade Microsoft.VisualStudio.2022.BuildTools).
  3. 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é
Vorherrschende Sprache
C++
Sterne
26.6k
Forks
1.8k
Ø Merge
3 T. 10 Std.
Gemergte PRs (30 T.)
41

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus microsoft/winget-cli

Alle Issues in microsoft/winget-cli

Ähnliche Issues

Weitere Issues zu C++

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.