forked from multitheftauto/mtasa-blue
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwin-build.bat
More file actions
25 lines (19 loc) · 693 Bytes
/
win-build.bat
File metadata and controls
25 lines (19 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
@echo off
rem Create solution (ignoring pause)
call win-create-projects.bat < nul
echo.
set MSBUILD_REG_KEY="HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0"
set MSBUILD_REG_SUBKEY="MSBuildToolsPath"
rem Check if MSBuild is installed
reg query %MSBUILD_REG_KEY% /v %MSBUILD_REG_SUBKEY% > nul 2>&1
if %ERRORLEVEL%==1 (
echo Could not find MSBuild. Make sure you have Visual Studio 2015 installed
goto end
)
rem Find msbuild
for /f "skip=2 tokens=2,*" %%a in ('reg query %MSBUILD_REG_KEY% /v %MSBUILD_REG_SUBKEY%') do set MSBUILDPATH="%%bmsbuild.exe"
echo Found MSBuild at: %MSBUILDPATH%
rem Start compiling
%MSBUILDPATH% Build/MTASA.sln /property:Configuration=Release /m
:end
pause