File tree Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Original file line number Diff line number Diff line change 1
1
:: Batch file that sets up Visual Studio command line tools and builds appshell.sln
2
2
:: This file should *not* be called directly. It is called by the build.sh script.
3
- ECHO OFF
3
+ @ ECHO OFF
4
4
5
+ IF DEFINED VS140COMNTOOLS GOTO VS2015
6
+ IF DEFINED VS120COMNTOOLS GOTO VS2013
5
7
IF DEFINED VS110COMNTOOLS GOTO VS2012
6
8
IF DEFINED VS100COMNTOOLS GOTO VS2010
7
9
8
10
:VSNotInstalled
9
- ECHO Visual Studio 2010 or 2012 must be installed.
10
- GOTO Exit
11
+ ECHO Visual Studio 2010, 2012, 2013 or 2015 must be installed.
12
+ GOTO Error
13
+
14
+ :VS2015
15
+ call " %VS140COMNTOOLS% /vsvars32.bat"
16
+ GOTO Build
17
+
18
+ :VS2013
19
+ call " %VS120COMNTOOLS% /vsvars32.bat"
20
+ GOTO Build
11
21
12
22
:VS2012
13
23
call " %VS110COMNTOOLS% /vsvars32.bat"
@@ -18,8 +28,9 @@ call "%VS100COMNTOOLS%/vsvars32.bat"
18
28
GOTO Build
19
29
20
30
:Build
21
- msbuild.exe appshell.sln /t:Clean /p:Platform=Win32 /p:Configuration=Release
22
- msbuild.exe appshell.sln /t:Build /p:Platform=Win32 /p:Configuration=Release
23
-
24
- :Exit
31
+ msbuild.exe appshell.sln /nr:false /t:Clean /p:Platform=Win32 /p:Configuration=Release
32
+ msbuild.exe appshell.sln /nr:false /t:Build /p:Platform=Win32 /p:Configuration=Release
25
33
exit /b %ERRORLEVEL%
34
+
35
+ :Error
36
+ exit /b 1
You can’t perform that action at this time.
0 commit comments