VS自动编译脚本
1:新建一个Build.bat脚本文件文章来源:https://www.toymoban.com/news/detail-465463.html
2:在脚本文件中输入:文章来源地址https://www.toymoban.com/news/detail-465463.html
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 >&
到了这里,关于VS自动编译脚本的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!