Update build bat to work with VS ent

This commit is contained in:
Nikolaj Olsson 2019-05-02 07:19:04 +02:00
parent da8f465d13
commit 0294935951

View File

@ -39,16 +39,23 @@ IF "%~1" == "" (
PUSHD "src" PUSHD "src"
TITLE %BUILDTYPE%ing SubtitleEdit - Release^|Any CPU... TITLE %BUILDTYPE%ing SubtitleEdit - Release^|Any CPU...
ECHO %InstallDir%
if exist "%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" ( 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"^ "%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" SubtitleEdit.sln /t:%BUILDTYPE% /p:Configuration=Release /p:Platform="Any CPU"^
/maxcpucount /consoleloggerparameters:DisableMPLogging;Summary;Verbosity=minimal /maxcpucount /consoleloggerparameters:DisableMPLogging;Summary;Verbosity=minimal
IF %ERRORLEVEL% NEQ 0 GOTO EndWithError 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 ( ) else (
ECHO Cannot find Visual Studio 2017 ECHO Cannot find Visual Studio 2017
GOTO EndWithError GOTO EndWithError
) )
)
IF /I "%BUILDTYPE%" == "Clean" GOTO END IF /I "%BUILDTYPE%" == "Clean" GOTO END
ECHO. ECHO.