pkg2zip
pkg2zip copied to clipboard
Make build.cmd to work with different types of Visual Studio 2017 (Build Tools, Community, Pro)
Please update build.cmd as following to make it more flexible for different VS setups, e.g. in my case I only use VS build tools which are in "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\BuildTools"
@echo off
if not "%VSINSTALLDIR%" == "" goto vsdevcmd_present
echo Please run %~0 inside a Visual Studio 2017 Tools Developer Command Prompt
exit /B
:vsdevcmd_present
call "%VSINSTALLDIR%\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64
cd /d "%~dp0"
...