Visual Studio Build Tools 2022 Offline Installer May 2026

Full list: Run vs_buildtools.exe --list in an online environment. 1. Offline Installation on Windows Server Core Windows Server Core has no GUI. You must use the silent installer:

vs_buildtools.exe --layout C:\vs2022_buildtools_offline --export config.vsconfig The config.vsconfig JSON file contains the list of workloads/components. You can later install using: visual studio build tools 2022 offline installer

C:\BuildTools\MSBuild\Current\Bin Or use full path in scripts. Build Tools 2022 does not support Windows 8.1 or older. Upgrade OS. Part 9: Comparison with Alternative Approaches | Method | Pros | Cons | |--------|------|------| | Online installer each time | Always latest patches | Slow, network-dependent, unreproducible | | Offline layout (this article) | Reproducible, air-gap capable, fast deployment | Requires manual updates, large initial download | | Chocolatey / winget | Easy scripting | Still requires internet per install | | Pre-built VM image with tools baked in | Extremely fast | Heavy, less flexible | Full list: Run vs_buildtools

(run on internet-connected machine):

FROM mcr.microsoft.com/windows/servercore:ltsc2022 COPY ./vs2022_buildtools_offline C:/vs_layout RUN C:/vs_layout/vs_buildtools.exe --quiet --wait --norestart --installPath C:/BuildTools --add Microsoft.VisualStudio.Workload.VCTools Use --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 instead of full workload for smaller container size. 3. Generating a Bootstrapper for Distribution You can create a self-contained vs_buildtools.exe that references your layout: You must use the silent installer: vs_buildtools