[VS2008]自动化编译

REM ************************************************************************************************  
REM * Script to compile the solutions of VS2008                                                    *  
REM * Created by: Jacky_Dai                                                                        *  
REM * Created 2015.12.23                                                                           *  
REM ************************************************************************************************  

REM STEP 1: set environment variables:
REM ************************************************************************************************
SET VS2008Compiler="%VS90COMNTOOLS%..\..\Common7\IDE\devenv.com"
REM ************************************************************************************************

REM STEP 2: set compile log
REM ************************************************************************************************
SET CompileLogName="%~dp0compileResults.log"
ECHO [%DATE% %Time%] Start compile sequence >%CompileLogName%
ECHO Used compile configuration is %buildAnyCPU% >>%CompileLogName%
REM ************************************************************************************************


REM STEP 3: Start compile
REM ************************************************************************************************
SET SolutionFileName="%~dp0ConvertTool.sln"
%VS2008Compiler% %SolutionFileName% /build "Release|Win32" /Out %CompileLogName%
IF NOT %errorlevel% == 0 ECHO %SolutionFileName% failed!   Error: %errorlevel% >>%CompileLogName%
IF %errorlevel% == 0 ECHO %SolutionFileName% compiled successful >>%CompileLogName%
REM ************************************************************************************************

REM STEP 4: If compile failed stop processing:
REM ************************************************************************************************
IF NOT %errorlevel% == 0 PAUSE  

ECHO [%DATE% %Time%] Finished compile sequence >>%CompileLogName%
REM ************************************************************************************************   



REM ************************************************************************************************  
REM * Script to compile the solutions of VS2008                                                    *  
REM * Created by: Jacky_Dai                                                                        *  
REM * Created 2015.12.23                                                                           *  
REM ************************************************************************************************  

REM STEP 1: set environment variables:
REM ************************************************************************************************
SET VS2008Compiler="%VS90COMNTOOLS%..\..\Common7\IDE\devenv.com"  
REM ************************************************************************************************ 

REM STEP 2: set compile log
REM ************************************************************************************************ 
SET CompileLogName="%~dp0compileResults.log"  
ECHO [%DATE% %Time%] Start compile sequence >%CompileLogName%  
ECHO Used compile configuration is %buildAnyCPU% >>%CompileLogName%  
REM ************************************************************************************************ 

REM STEP 3: Start compile
REM ************************************************************************************************ 
SET SolutionFileName="%~dp0ConvertTool.sln"
%VS2008Compiler% %SolutionFileName% /build "Debug|Win32" /Out %CompileLogName% 
 
IF NOT %errorlevel% == 0 ECHO %SolutionFileName% failed!   Error: %errorlevel% >>%CompileLogName%  
IF %errorlevel% == 0 ECHO %SolutionFileName% compiled successful >>%CompileLogName%  
REM ************************************************************************************************ 

REM STEP 4: If compile failed stop processing:
REM ************************************************************************************************  
IF NOT %errorlevel% == 0 PAUSE  
ECHO [%DATE% %Time%] Finished compile sequence >>%CompileLogName%  
REM ************************************************************************************************ 




REM ************************************************************************************************  
REM * Script to compile the solutions of VS2008                                                    *  
REM * Created by: Jacky_Dai                                                                        *  
REM * Created 2015.12.23                                                                           *  
REM ************************************************************************************************  

REM Step1: set environment variables 
REM ************************************************************************************************
SET VS2008Compiler="%VS90COMNTOOLS%..\..\Common7\IDE\devenv.com"  
REM ************************************************************************************************ 

REM Step2:  Clean up
REM ************************************************************************************************ 
SET SolutionFileName="%~dp0ConvertTool.sln"
%VS2008Compiler% %SolutionFileName% /Clean "Debug|Win32"
%VS2008Compiler% %SolutionFileName% /Clean "Release|Win32"

你可能感兴趣的:([VS2008]自动化编译)