Initial commit
This commit is contained in:
15
tools/msbuild.bat
Normal file
15
tools/msbuild.bat
Normal file
@@ -0,0 +1,15 @@
|
||||
@echo off
|
||||
setlocal enabledelayedexpansion
|
||||
|
||||
rem locate msbuild installation path
|
||||
for /f "usebackq tokens=*" %%i in (`%~dp0\vswhere.exe -latest -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\MSBuild.exe`) do (
|
||||
set "msbuild=%%i"
|
||||
)
|
||||
|
||||
if not exist "%msbuild%" (
|
||||
echo Error: Cannot locate MSBuild.exe
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
rem run msbuild
|
||||
"%msbuild%" %*
|
||||
Reference in New Issue
Block a user