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

オープン
#6,666 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp
領域
backend, cli

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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é
主要言語
C++
スター
26.6k
フォーク
1.8k
平均マージ
3日 10時間
マージ済み PR(30日)
41

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/winget-cli のほかの issue

microsoft/winget-cli の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。