/MSVC

Portable Microsoft Visual C++ (MSVC) Compiler - Extract from Visual Studio Installer

Primary LanguageBatchfile

MSVC Portable

Portable Microsoft Visual C++ Compiler extract from Visual Studio Installer, include Windows SDK headers and libraries.

Download

VC Windows SDK Visual Studio Size Packing Date
v14.40.33807 v10.0.26100 Visual Studio 2022 131 MB 2024/07/19
v14.39.33519 v10.0.22621 Visual Studio 2022 103 MB 2024/05/10

Download from Releases.

Usage

setup_x64/x86.bat  # set environment variables
cl.exe             # run compiler

Windows Terminal

Create new profile and set command line:

%SystemRoot%\System32\cmd.exe /K setup_x64/x86.bat

Build latest version

You can using MSVC-Portable.bat to download latest version from Microsoft.

Thanks to @mmozeiko