-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.bat
45 lines (39 loc) · 913 Bytes
/
build.bat
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@echo off
title "SystemInfoSnapshot Compiler"
set PROJECTFILE=SystemInfoSnapshot.sln
set CONFIGURATION=Release
set PROPERTIES = /property:Configuration=%CONFIGURATION%
echo #
echo # SystemInfoSnapshot
echo # Author: Tiago Conceição
echo # http://systeminfosnapshot.com
echo #
echo # Build and compile project
echo #
ping 1.1.1.1 -n 1 -w 3000 > nul
if defined VS120COMNTOOLS (
call "%VS120COMNTOOLS%\vsvars32.bat"
goto compile
) else (
if defined VS110COMNTOOLS (
call "%VS110COMNTOOLS%\vsvars32.bat"
goto compile
) else (
if defined VS100COMNTOOLS (
call "%VS110COMNTOOLS%\vsvars32.bat"
goto compile
) else (
if defined VS90COMNTOOLS (
call "%VS90COMNTOOLS%\vsvars32.bat"
goto compile
) else (
echo ERROR: msbuild require a valid instalation of Visual Studio 9, 10, 11 or 12
pause
)
)
)
)
:compile
msbuild %PROPERTIES% %PROJECTFILE%
pause
:end