@setlocal @echo off cd %~dp0\.. if not exist build\src\lib\libspark.vcxproj ( @call tools\setup_builds.bat ) call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\VsDevCmd.bat" msbuild /m /p:debugtype=portable /p:platform=x64 /clp:verbosity=minimal /clp:summary /t:restore /p:RestoreSources=externals\windows\nuget\packages spark_client.sln /p:Configuration=release IF %ERRORLEVEL% NEQ 0 GOTO :ERROR_AND_END msbuild /m /p:debugtype=portable /p:platform=x64 /clp:verbosity=minimal /clp:summary spark_client.sln /p:Configuration=release IF %ERRORLEVEL% NEQ 0 GOTO :ERROR_AND_END :: build netcore cd src\client\sparkcmd dotnet publish -f netcoreapp2.1 -c release IF %ERRORLEVEL% NEQ 0 GOTO :ERROR_AND_END GOTO :END :ERROR_AND_END EXIT /B %ERRORLEVEL% :END