1:新建一个Build.bat脚本文件
2:在脚本文件中输入:
rem ************************************************
rem * Script to compile the solutions of IdealOEye*
rem * Created by: zhaohu *
rem * Created 2017.05.15 *
rem ************************************************
rem set environment variables:
set _devenv="%VS100COMNTOOLS%..\..\Common7\IDE\devenv.com"
rem set compile log
set _log="%~dp0compileResults.log"
echo [%DATE% %Time%] Start compile sequence >%_log%
echo Used compile configuration is %buildAnyCPU% >>%_log%
rem Start compile************************************************
set _solution_file="%~dp0samples_vs2010.sln"
%_devenv% %_solution_file% /build "Release|Win32" /Out %_log%
if not %errorlevel% == 0 echo %_solution_file%failed! Error: %errorlevel% >>%_log%
if %errorlevel% == 0 echo %_solution_file% compiled successful >>%_log%
rem If compile failed stop processing:
if not %errorlevel% == 0 pause
echo [%DATE% %Time%] Finished compile sequence >>%_log%
pause
3:将其放在sln解决方案目录下,运行即可自动编译。
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步