Visual Studio安装程序:如何恢复缺失组件——VS2019社区版布局下载中断后补全缺失包方法
Got it, let's work through this VS 2019 Community layout download issue step by step. Here's exactly how to restart the process, verify missing packages, and only download what's incomplete:
1. 重新启动下载并自动补全缺失组件
The simplest way to pick up where you left off is to reuse your original command, adding the --verify --fix flags. These tell the VS layout tool to check existing files for integrity and automatically download any missing or corrupted packages—no need to redownload everything from scratch.
Run this command in Command Prompt or PowerShell (make sure G:\ is accessible now):
vs_community.exe --layout g:\cat\e-install\install\Dev\ide-editors-platforms\VS\vs2019-all-layout_en_US\ --lang en-US --verify --fix
--verify: Checks every file in your layout against its expected hash to spot missing or damaged items--fix: Automatically downloads only the files that failed verification
2. 手动验证缺失包(可选)
If you want to first confirm exactly which packages are missing or corrupted before fixing, run the command with just the --verify flag. This will output a detailed report of all problematic files:
vs_community.exe --layout g:\cat\e-install\install\Dev\ide-editors-platforms\VS\vs2019-all-layout_en_US\ --lang en-US --verify
You’ll see specific errors like the one you encountered, listing the exact missing components and their paths.
3. 单独下载特定缺失组件(按需使用)
If you only need to grab one specific missing package (like the Microsoft.VisualC.14.25.MFC.Redist.X64,version=14.25.28508 from your error), you can target it directly with the --add flag:
vs_community.exe --layout g:\cat\e-install\install\Dev\ide-editors-platforms\VS\vs2019-all-layout_en_US\ --lang en-US --add Microsoft.VisualC.14.25.MFC.Redist.X64,version=14.25.28508
That said, using --verify --fix is usually more efficient since it handles all missing items in one go.
Quick Tips:
- Double-check that G:\ is fully accessible before running the command to avoid another interruption
- If you get permission errors, right-click your terminal and select "Run as administrator"
- The tool will skip any files that are already downloaded and verified, so you won’t waste bandwidth on duplicates
内容的提问来源于stack exchange,提问作者Maxim Kitsenko

