1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00
Beef/bin/msbuild.bat
Hunter Bridges 81b909c541 Fix misc bugs w/ IDE build in folders with a space
- Add quotes to bin/msbuild.bat paths
- Tweak PostBuildCmds in Debugger64 and IDEHelper
- Tweak Debug paths in IDE project to be relative to Workspace
- Modify AppendWithOptionalQuotes to not add more quotes if source string already in quotes
- Modify quoting behavior in build shell command construction
2020-10-12 15:49:25 -07:00

10 lines
364 B
Batchfile

@echo off
for /f "usebackq tokens=*" %%i in (`"%~dp0\vswhere" -prerelease -latest -products * -requires Microsoft.Component.MSBuild -property installationPath`) do (
set "VcInstallDir=%%i"
)
SET "VsBuildDir=%VcInstallDir%\MSBuild\15.0"
@IF EXIST "%VcInstallDir%\MSBuild\Current" SET VsBuildDir=%VcInstallDir%\MSBuild\Current
"%VsBuildDir%\Bin\MSBuild.exe" %*