Skip to main content

vs_BuildTools.exe --noweb --quiet --wait --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended After installation, verify core build tools:

For incremental updates to target machines, use:

This guide is intended for build engineers, IT administrators, or developers who need to set up build environments on machines without internet access (e.g., secure labs, CI build servers, air-gapped networks). 1. Overview The Visual Studio Build Tools 2022 provide the necessary compilers (MSVC), libraries, and build automation tools (MSBuild) without the full IDE. An offline layout allows you to download all required packages once, then deploy them to multiple target machines.

vs_BuildTools.exe --layout C:\VS2022_BuildTools_Offline --lang en-US Re-run the same --layout command — it will download only updated packages.

vs_BuildTools.exe --layout C:\VS2022_BuildTools_Offline ^ --add Microsoft.VisualStudio.Workload.MSBuildTools ^ --add Microsoft.VisualStudio.Workload.VCTools ^ --add Microsoft.VisualStudio.Component.VC.ATL ^ --add Microsoft.VisualStudio.Component.VC.MFC ^ --add Microsoft.VisualStudio.Component.Windows10SDK.20348 ^ --lang en-US | Workload | ID | |----------|----| | C++ build tools | Microsoft.VisualStudio.Workload.VCTools | | MSBuild tools | Microsoft.VisualStudio.Workload.MSBuildTools | | .NET desktop build tools | Microsoft.VisualStudio.Workload.NetCoreBuildTools |