diff options
Diffstat (limited to 'CompileWindows.bat')
-rw-r--r-- | CompileWindows.bat | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/CompileWindows.bat b/CompileWindows.bat new file mode 100644 index 0000000..624babb --- /dev/null +++ b/CompileWindows.bat @@ -0,0 +1,19 @@ +@echo off +SET DIR=%~dp0 + +REM if exist "%SYSTEMROOT%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" SET MSBUILD_PATH="%SYSTEMROOT%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" +if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe" SET MSBUILD_PATH="%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe" + +IF [%MSBUILD_PATH%] == [] GOTO noMSBuild + +echo PrusaSL1Viewer.sln Compile +echo %MSBUILD_PATH% +%MSBUILD_PATH% -p:Configuration=Release PrusaSL1Viewer.sln +GOTO end + + +:noMSBuild + echo MSBuild.exe path not found! + +:end + pause |