Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Visualization/Build.cmd @ 4870

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
3REM == CONFIGURATION SECTION ==
4SET VSSOLUTION=HeuristicLab.Visualization.sln
5SET /P CONFIGURATION=Which configuration to build [Debug]:
6IF "%CONFIGURATION%"=="" SET CONFIGURATION=Debug
7SET /P PLATFORM=Which platform to build [Any CPU]:
8IF "%PLATFORM%"=="" SET PLATFORM=Any CPU
9REM == END CONFIGURATION SECTION ==
10
11REM First find the path to the msbuild.exe by performing a registry query
12FOR /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
14REM Then execute msbuild to clean and build the solution
15REM Disable that msbuild creates a cache file of the solution
16SET MSBuildUseNoSolutionCache=1
17REM 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
21PAUSE
Note: See TracBrowser for help on using the repository browser.