change runprebuild.bat to not create compile.bat if msbuild for vs2017 or vs2017 not found
parent
cc6a02dd53
commit
46defa5d31
|
@ -33,19 +33,22 @@ if defined FOUNDGREP (
|
||||||
set FINDCMD=find
|
set FINDCMD=find
|
||||||
)
|
)
|
||||||
|
|
||||||
|
rem try vs2015
|
||||||
for %%v in (14.0, 12.0, 4.0) do (
|
FOR /F "usebackq tokens=1-3" %%A IN (`REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14" /v %VALUE_NAME% 2^>nul ^| %FINDCMD% "%VALUE_NAME%"`) DO (
|
||||||
FOR /F "usebackq tokens=1-3" %%A IN (`REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\%%v" /v %VALUE_NAME% 2^>nul ^| %FINDCMD% "%VALUE_NAME%"`) DO (
|
set ValueValue=%%C
|
||||||
set ValueValue=%%C
|
goto :found
|
||||||
goto :found
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
@echo %KEY_NAME%\%VALUE_NAME% not found.
|
@echo msbuild for at least VS2015 not found, please install a (Community) edition of VS2017 or VS2015
|
||||||
@echo Not creating compile.bat
|
@echo Not creating compile.bat
|
||||||
exit
|
if exist "compile.bat" (
|
||||||
|
del compile.bat
|
||||||
|
)
|
||||||
|
goto :done
|
||||||
|
|
||||||
:found
|
:found
|
||||||
@echo Found msbuild at %ValueValue%
|
@echo Found msbuild at %ValueValue%
|
||||||
@echo Creating compile.bat
|
@echo Creating compile.bat
|
||||||
@echo %ValueValue%\msbuild opensim.sln > compile.bat
|
@echo %ValueValue%\msbuild opensim.sln > compile.bat
|
||||||
|
|
||||||
|
:done
|
Loading…
Reference in New Issue