Microsoft Build Tools 2022 ~repack~ -
Always add --wait in CI scripts – otherwise the installer may detach and the pipeline will continue prematurely. Common Use Cases & Examples 1. Building a C++ project without VS After installation, MSBuild is at:
You get a vs_BuildTools.exe (~2 MB bootstrapper). vs_BuildTools.exe --quiet --wait --norestart --installPath C:\BuildTools ` --add Microsoft.VisualStudio.Workload.MSBuildTools ` --add Microsoft.VisualStudio.Workload.VCTools ` --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 ` --add Microsoft.VisualStudio.Component.Windows10SDK.20348 ` --includeRecommended Workload IDs for common scenarios: microsoft build tools 2022
& "C:\BuildTools\MSBuild\Current\Bin\MSBuild.exe" MySolution.sln -p:Configuration=Release -p:Platform=x64 Unlike full VS, the environment isn’t globally set. Use the provided script: Always add --wait in CI scripts – otherwise
I’ve structured it for a developer audience (CI/CD engineers, C++ devs, .NET devs without full VS). It’s practical, actionable, and highlights common pitfalls. If you maintain build servers, Docker images, or just hate installing the full Visual Studio IDE just to compile code, Microsoft Build Tools 2022 is your best friend. vs_BuildTools










