The current version (2023/09/14) is Build Tools for Visual Studio 2022. It's an online installer, you need to include at least the individual components:
- VC++ 2022 version xx.x tools
- Windows SDK to use standard libraries.
For updated Windows 10 or Windows 11: use the new winget cli
Just copy and paste that command in cmd
, powershell
or Run (WinKey + R)
.
Windows 10 SDK
winget install Microsoft.VisualStudio.2022.BuildTools --force --override "--wait --passive --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.Windows10SDK"
Windows 11 SDK
winget install Microsoft.VisualStudio.2022.BuildTools --force --override "--wait --passive --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.Windows11SDK.22000"
The above commands will download and run the installer with the switches passed after --override
.
The --add
will add specific features when installing, in this case:
Microsoft.VisualStudio.Component.VC.Tools.x86.x64
Microsoft.VisualStudio.Component.Windows10SDK
or
Microsoft.VisualStudio.Component.Windows11SDK.22000
Within Microsoft's docs you can find the IDs of the features available for the Visual Studio Build Tools and in this section also learn more about other parameters available for the installer.