├── .gitignore ├── MSVC-Portable.bat └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | msvc/ 2 | downloads/ 3 | 4 | *.7z 5 | -------------------------------------------------------------------------------- /MSVC-Portable.bat: -------------------------------------------------------------------------------- 1 | rmdir MSVC /s/q 2 | 3 | curl https://gist.githubusercontent.com/mmozeiko/7f3162ec2988e81e56d5c4e22cde9977/raw/portable-msvc.py | python - --accept-license --target=x64,x86 --host=x64 4 | 5 | rename msvc MSVC 6 | rmdir downloads /s/q 7 | 8 | pause 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MSVC Portable 2 | Portable Microsoft Visual C++ Compiler extract from Visual Studio Installer, include Windows SDK headers and libraries. 3 | 4 | ## Download 5 | | VC | Windows SDK | Visual Studio | Size | Packing Date | 6 | |--------------|-------------|--------------------|--------|--------------| 7 | | v14.40.33807 | v10.0.26100 | Visual Studio 2022 | 131 MB | 2024/07/19 | 8 | | v14.39.33519 | v10.0.22621 | Visual Studio 2022 | 103 MB | 2024/05/10 | 9 | 10 | 11 | Download from [Releases](../../releases). 12 | 13 | ## Usage 14 | ``` 15 | setup_x64/x86.bat # set environment variables 16 | cl.exe # run compiler 17 | ``` 18 | 19 | ## Windows Terminal 20 | Create new profile and set command line: 21 | ``` 22 | %SystemRoot%\System32\cmd.exe /K setup_x64/x86.bat 23 | ``` 24 | 25 | ## Build latest version 26 | You can using ```MSVC-Portable.bat``` to download latest version from Microsoft. 27 | 28 | Thanks to [@mmozeiko](https://gist.github.com/mmozeiko/7f3162ec2988e81e56d5c4e22cde9977) 29 | --------------------------------------------------------------------------------