Skip to content

Commit fe8bd4f

Browse files
committed
Support for VS2019 msbuild
1 parent c74ff05 commit fe8bd4f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

frontend.bat

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,11 @@ for /F "tokens=1,2 delims=." %%a in ("!vsver!") do (
524524
rem https://github.com/3F/hMSBuild/issues/3
525525
set vsver=%%~a.0
526526
)
527+
REM VS2019 changed path
528+
if !vsver! geq 16 set vsver=Current
529+
530+
if not exist "!vspath!\MSBuild\!vsver!\Bin" set "%3=" & exit /B %ERROR_PATH_NOT_FOUND%
531+
527532
set _msbp=!vspath!\MSBuild\!vsver!\Bin
528533

529534
call :dbgprint "found path via vswhere: " _msbp
@@ -606,7 +611,7 @@ if not defined notamd64 (
606611

607612
:: 7z & amd64\msbuild - https://github.com/3F/vsSolutionBuildEvent/issues/38
608613
set _noamd=!_msbp:Framework64=Framework!
609-
set _noamd=!_noamd:amd64=!
614+
set _noamd=!_noamd:\amd64=!
610615

611616
if exist "!_noamd!" (
612617
call :dbgprint "Return 32bit version because of -notamd64 key."

0 commit comments

Comments
 (0)