Kolja Strohm hace 5 años
padre
commit
3e25bdb7bc
Se han modificado 1 ficheros con 21 adiciones y 3 borrados
  1. 21 3
      build.bat

+ 21 - 3
build.bat

@@ -1,3 +1,21 @@
-"D:\Visual Studio 2017\MSBuild\15.0\Bin\MSBuild.exe" "Icon.sln" /p:configuration=release /p:platform=win32
-"D:\Visual Studio 2017\MSBuild\15.0\Bin\MSBuild.exe" "Icon.sln" /p:configuration=release /p:platform=x64
-"D:\Visual Studio 2017\MSBuild\15.0\Bin\MSBuild.exe" "Icon.sln" /p:configuration=debug /p:platform=x64
+:DebugWin64
+SET RETURN=DebugWin64
+SET NEXT=ReleaseWin64
+"%InstallDir%\%MSBuildExe%" /p:configuration=debug /p:platform=x64
+if errorlevel 1 GOTO Error
+:ReleaseWin64
+SET RETURN=ReleaseWin64
+SET NEXT=ReleaseWin32
+"%InstallDir%\%MSBuildExe%" /p:configuration=release /p:platform=x64
+if errorlevel 1 GOTO Error
+:ReleaseWin32
+SET RETURN=ReleaseWin32
+SET NEXT=END
+"%InstallDir%\%MSBuildExe%" /p:configuration=release /p:platform=win32
+if errorlevel 1 GOTO Error
+GOTO End
+:Error
+SET /p redo=Nochmal versuchen?(j/n):
+IF /I '%redo%' equ 'j' GOTO %RETURN%
+GOTO %NEXT%
+:End