Last change
on this file since 4870 was
4831,
checked in by abeham, 14 years ago
|
#1265
- Added a simple batch file that builds the project (without launching VS)
|
File size:
1021 bytes
|
Line | |
---|
1 | @ECHO OFF
|
---|
2 |
|
---|
3 | REM == CONFIGURATION SECTION ==
|
---|
4 | SET VSSOLUTION=HeuristicLab.Visualization.sln
|
---|
5 | SET /P CONFIGURATION=Which configuration to build [Debug]:
|
---|
6 | IF "%CONFIGURATION%"=="" SET CONFIGURATION=Debug
|
---|
7 | SET /P PLATFORM=Which platform to build [Any CPU]:
|
---|
8 | IF "%PLATFORM%"=="" SET PLATFORM=Any CPU
|
---|
9 | REM == END CONFIGURATION SECTION ==
|
---|
10 |
|
---|
11 | REM First find the path to the msbuild.exe by performing a registry query
|
---|
12 | FOR /F "tokens=1,3 delims= " %%A IN ('REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0"') DO IF "%%A"=="MSBuildToolsPath" SET MSBUILDPATH=%%B
|
---|
13 |
|
---|
14 | REM Then execute msbuild to clean and build the solution
|
---|
15 | REM Disable that msbuild creates a cache file of the solution
|
---|
16 | SET MSBuildUseNoSolutionCache=1
|
---|
17 | REM Run msbuild to clean and then build
|
---|
18 | %MSBUILDPATH%msbuild.exe %VSSOLUTION% /target:Clean /p:Configuration="%CONFIGURATION%",Platform="%PLATFORM%" /nologo
|
---|
19 | %MSBUILDPATH%msbuild.exe %VSSOLUTION% /target:Build /p:Configuration="%CONFIGURATION%",Platform="%PLATFORM%" /nologo
|
---|
20 |
|
---|
21 | PAUSE |
---|
Note: See
TracBrowser
for help on using the repository browser.