Skip to content

Instantly share code, notes, and snippets.

@uvguy
uvguy / msvc2017x86desktop.bat
Last active February 22, 2018 10:33
msvc 2017 desktop app x86 of preview 15.6 version toolset environtment variable
:: this script simply set needed env variable to perform command line compilation using vs2017 preview 2017 15.6 atw (At This Time Of Writing 22/02/2018)
:: you can adjust some important variable like VC2017PRODVERSION to point as your desired of cl.exe compiler driver version.
:: WINSDKVERSION is the version of your desired win sdk instalation version.
:: of course you can either prepand or add a new custom INCLUDE, LIB and PATH to point to your custom folder c++ libs include and paths.
:: this script is only work for desktop x86 target, you may figure out how to adjust for x64 version of cl.exe by ease :)
set VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\Preview\Community
set VCINSTALLDIR=%VSINSTALLDIR%\Vc
set VC2017PRODVERSION=14.13.26127
set WINSDKVERSION=10.0.17095.0