\r
:SetVS2017\r
if not defined VS150COMNTOOLS (\r
+ @REM clear two envs so that vcvars32.bat can run successfully.\r
+ set VSINSTALLDIR=\r
+ set VCToolsVersion=\r
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" (\r
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\BuildTools" (\r
call "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -products Microsoft.VisualStudio.Product.BuildTools -version 15,16 > vswhereInfo\r
\r
:SetVS2019\r
if not defined VS160COMNTOOLS (\r
+ @REM clear two envs so that vcvars32.bat can run successfully.\r
+ set VSINSTALLDIR=\r
+ set VCToolsVersion=\r
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" (\r
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\BuildTools" (\r
call "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -products Microsoft.VisualStudio.Product.BuildTools -version 16,17 > vswhereInfo\r