diff options
Diffstat (limited to 'build/CompileWindows.bat')
-rw-r--r-- | build/CompileWindows.bat | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/build/CompileWindows.bat b/build/CompileWindows.bat new file mode 100644 index 0000000..350c372 --- /dev/null +++ b/build/CompileWindows.bat @@ -0,0 +1,22 @@ +@echo off +SET DIR=%~dp0 +cd .. + +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\Community\MSBuild\Current\Bin\MSBuild.exe" SET MSBUILD_PATH="%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\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 UVtools.sln Compile +echo %MSBUILD_PATH% +%MSBUILD_PATH% -p:Configuration=Release UVtools.sln +GOTO end + + +:noMSBuild + echo MSBuild.exe path not found! trying 'dotnet' instead + dotnet build + +:end + pause |