diff --git a/build.bat b/build.bat index 995228741..d28737341 100644 --- a/build.bat +++ b/build.bat @@ -14,14 +14,6 @@ IF /I "%~1" == "-?" GOTO ShowHelp ECHO Getting latest changes... git pull ECHO. - -ECHO Check for new translation strings... -SET "LanguageToolPath=src\UpdateLanguageFiles\bin\debug\UpdateLanguageFiles.exe" -IF NOT EXIST "%LanguageToolPath%" ( - ECHO Compile UpdateLanguageFiles! -) -"%LanguageToolPath%" "LanguageMaster.xml" "src\ui\Logic\LanguageDeserializer.cs" - ECHO Starting compilation... REM Set environment variables for Visual Studio command line if necessary @@ -100,6 +92,16 @@ IF EXIST "%VSINSTALLDIR%MSBuild\Current\Bin\MSBuild.exe" ( GOTO EndWithError )) +ECHO Check for new translation strings... +"%MSBUILD%" src\UpdateLanguageFiles\UpdateLanguageFiles.csproj /r /t:Rebuild /p:Configuration=Debug /p:Platform="Any CPU"^ + /maxcpucount /p:OutputPath=bin\debug /consoleloggerparameters:DisableMPLogging;Summary;Verbosity=minimal +SET "LanguageToolPath=src\UpdateLanguageFiles\bin\debug\UpdateLanguageFiles.exe" +IF NOT EXIST "%LanguageToolPath%" ( + ECHO Compile UpdateLanguageFiles! +) +"%LanguageToolPath%" "LanguageMaster.xml" "src\ui\Logic\LanguageDeserializer.cs" +ECHO. + "%MSBUILD%" SubtitleEdit.sln /r /t:%BUILDTYPE% /p:Configuration=Release /p:Platform="Any CPU"^ /maxcpucount /consoleloggerparameters:DisableMPLogging;Summary;Verbosity=minimal IF %ERRORLEVEL% NEQ 0 GOTO EndWithError