From 0294935951c6995ee1ee7ec350520a455eb2367a Mon Sep 17 00:00:00 2001 From: Nikolaj Olsson Date: Thu, 2 May 2019 07:19:04 +0200 Subject: [PATCH] Update build bat to work with VS ent --- build.bat | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/build.bat b/build.bat index e56ea73d7..559d0fe93 100644 --- a/build.bat +++ b/build.bat @@ -39,16 +39,23 @@ IF "%~1" == "" ( PUSHD "src" TITLE %BUILDTYPE%ing SubtitleEdit - Release^|Any CPU... - -if exist "%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" ( +ECHO %InstallDir% +IF exist "%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" ( "%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" SubtitleEdit.sln /t:%BUILDTYPE% /p:Configuration=Release /p:Platform="Any CPU"^ /maxcpucount /consoleloggerparameters:DisableMPLogging;Summary;Verbosity=minimal IF %ERRORLEVEL% NEQ 0 GOTO EndWithError +) ELSE ( +IF exist "%InstallDir%\MSBuild\Current\Bin\MSBuild.exe" ( + "%InstallDir%\MSBuild\Current\Bin\MSBuild.exe" SubtitleEdit.sln /t:%BUILDTYPE% /p:Configuration=Release /p:Platform="Any CPU"^ + /maxcpucount /consoleloggerparameters:DisableMPLogging;Summary;Verbosity=minimal + IF %ERRORLEVEL% NEQ 0 GOTO EndWithError ) else ( ECHO Cannot find Visual Studio 2017 GOTO EndWithError ) +) + IF /I "%BUILDTYPE%" == "Clean" GOTO END ECHO.