Update src/msbuild.cmd script to optionally include Visual Studio 2019 Community build tools
This commit is contained in:
parent
ed9f9ccbab
commit
09862e7ce9
1 changed files with 16 additions and 0 deletions
|
@ -1,2 +1,18 @@
|
|||
@echo off
|
||||
|
||||
if exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\VsDevCmd.bat" goto vs2017
|
||||
if exist "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\VsDevCmd.bat" goto vs2019
|
||||
|
||||
echo Error: VsDevCmd.bat not found!
|
||||
goto:eof
|
||||
|
||||
:vs2017
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\VsDevCmd.bat"
|
||||
goto run
|
||||
|
||||
:vs2019
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\VsDevCmd.bat"
|
||||
goto run
|
||||
|
||||
:run
|
||||
msbuild.exe %*
|
||||
|
|
Loading…
Add table
Reference in a new issue