runprebuild19.bat 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. @echo OFF
  2. bin\Prebuild.exe /target vs2019 /file prebuild48.xml
  3. setlocal ENABLEEXTENSIONS
  4. set VALUE_NAME=MSBuildToolsPath
  5. if "%PROCESSOR_ARCHITECTURE%"=="x86" set PROGRAMS=%ProgramFiles%
  6. if defined ProgramFiles(x86) set PROGRAMS=%ProgramFiles(x86)%
  7. rem Try to find VS2019
  8. for %%e in (Enterprise Professional Community) do (
  9. if exist "%PROGRAMS%\Microsoft Visual Studio\2019\%%e\MSBuild\Current\Bin\MSBuild.exe" (
  10. set ValueValue="%PROGRAMS%\Microsoft Visual Studio\2019\%%e\MSBuild\Current\Bin\MSBuild"
  11. goto :found
  12. )
  13. )
  14. @echo msbuild for at least VS2019 not found, please install a (Community) edition of VS2019
  15. @echo Not creating compile.bat
  16. if exist "compile.bat" (
  17. del compile.bat
  18. )
  19. goto :done
  20. :found
  21. @echo Found msbuild at %ValueValue%
  22. @echo Creating compile.bat
  23. rem To compile in debug mode
  24. @echo %ValueValue% opensim.sln > compile.bat
  25. rem To compile in release mode comment line (add rem to start) above and uncomment next (remove rem)
  26. rem @echo %ValueValue% /p:Configuration=Release opensim.sln > compile.bat
  27. :done
  28. if exist "bin\addin-db-002" (
  29. del /F/Q/S bin\addin-db-002 > NUL
  30. rmdir /Q/S bin\addin-db-002
  31. )