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"
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.