zoukankan      html  css  js  c++  java
  • VS自动编译脚本

    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%....Common7IDEdevenv.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解决方案目录下,运行即可自动编译。

    作者:长风 Email:844064492@qq.com QQ群:607717453 Git:https://github.com/zhaohu19910409Dz 开源项目:https://github.com/OriginMEK/MEK 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利. 感谢您的阅读。如果觉得有用的就请各位大神高抬贵手“推荐一下”吧!你的精神支持是博主强大的写作动力。 如果觉得我的博客有意思,欢迎点击首页左上角的“+加关注”按钮关注我!
  • 相关阅读:
    cmd命令之set详解
    微信公众号之推送消息
    总结js(1)
    本地文件夹变远程仓库并且提交Github
    npm之使用淘宝源
    页面倒计时返回
    在线sass编译器
    js条件语句之职责链数组
    【轉】靜
    css 實現微信聊天類似的氣泡
  • 原文地址:https://www.cnblogs.com/zhaohu/p/7658307.html
Copyright © 2011-2022 走看看