Visual Studio Build Tools 2022 Offline Installer High Quality Info

(run on internet-connected machine):

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:

| Workload/Component | ID | |--------------------|----| | .NET desktop build tools | Microsoft.VisualStudio.Workload.ManagedDesktopBuildTools | | MSBuild Tools | Microsoft.VisualStudio.Workload.MSBuildTools | | C++ build tools | Microsoft.VisualStudio.Workload.VCTools | | Universal Windows Platform build tools | Microsoft.VisualStudio.Workload.UniversalBuildTools | | .NET Core cross-platform build tools | Microsoft.VisualStudio.Workload.NetCoreBuildTools | | Windows 10 SDK (latest) | Microsoft.VisualStudio.Component.Windows10SDK.20348 | | Windows 11 SDK (22H2) | Microsoft.VisualStudio.Component.Windows11SDK.22621 | | C++ CMake tools | Microsoft.VisualStudio.Component.VC.CMake | | C++ ATL | Microsoft.VisualStudio.Component.VC.ATL | | C++ MFC | Microsoft.VisualStudio.Component.VC.MFC | | NuGet packages and build tasks | Microsoft.VisualStudio.Component.NuGet.BuildTools | visual studio build tools 2022 offline installer

vs_buildtools.exe --layout C:\vs2022_buildtools_offline --lang en-US The bootstrapper will refresh the layout, downloading only new or updated packages. Instead of a single vs2022_buildtools_offline folder, create dated versions:

$layoutPath = "E:\vs2022_buildtools_offline" $installer = "$layoutPath\vs_buildtools.exe" $installPath = "C:\BuildTools" & $installer --quiet --wait --norestart --installPath $installPath --add Microsoft.VisualStudio.Workload.ManagedDesktopBuildTools --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended (run on internet-connected machine): vs_buildtools

vs_buildtools.exe --layout C:\vs2022_buildtools_offline --lang en-US This downloads all available Build Tools workloads and components for English (en-US). It will take a long time (10–100+ GB) and considerable bandwidth. To save space and time, specify only the workloads you actually need. Use --add to include workloads or individual components.

| Component | File Name | Purpose | |-----------|-----------|---------| | Online bootstrapper | vs_buildtools.exe | Small (~1 MB) installer that fetches packages live. | | Offline layout | Folder ( .\vs_buildtools_layout ) | Contains all packages for unattended/offline installation. | It will take a long time (10–100+ GB)

$layoutPath = "D:\vs2022_buildtools_offline" $bootstrapper = "vs_buildtools.exe" if (-not (Test-Path $bootstrapper)) Invoke-WebRequest -Uri "https://aka.ms/vs/17/release/vs_buildtools.exe" -OutFile $bootstrapper Create minimal C++ + .NET layout & .$bootstrapper --layout $layoutPath --add Microsoft.VisualStudio.Workload.ManagedDesktopBuildTools --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Component.Windows11SDK.22621 --lang en-US ` --includeRecommended