vs2013 批处理程序自动编译实例
来源:互联网 发布:h5活动报名系统源码 编辑:程序博客网 时间:2024/06/05 19:37
1、编译release实例脚本如下:
@echo off
set debugOrRelease=Release
set baseOutPath=%debugOrRelease%
rem 当前脚本所在路径
set build_root = %~dp0
rem vcvarsall.bat所在的路径:
set vcvars="%VS120COMNTOOLS%../../VC/vcvarsall.bat"
set devenv="%VS120COMNTOOLS%../IDE/devenv.exe"
rem 设置解决方案的路径
set thesln=./test.sln
echo 开始编译
echo on
echo 正在编译,请稍后...
@%devenv% %thesln% /rebuild %baseOutPath% /out build.log
@endlocal
@notepad build.log
@PAUSE
注意:bat文件与.sln文件在同一文件夹下;若需要编译其他的debug,则只需要修改set debugOrRelease=Release即可。
2、以上脚本参考如下:
@echo off
set debugOrRelease=debug
set baseOutPath=..\09.临时版本\Circus\%debugOrRelease%
set driverOutPath=%baseOutPath%\Config
set catPath=%driverOutPath%\Cat
set dogPath=%driverOutPath%\Dog
set CircusInPath=Circus\bin\%debugOrRelease%
set catInPath=Cat\bin\%debugOrRelease%
set dogInPath=Dog\bin\%debugOrRelease%
echo 输出路径
echo.%driverOutPath%
echo.%catPath%
echo.%dogPath%
@PAUSE
echo 开始编译
%windir%\microsoft.net\framework\v4.0.30319\msbuild Circus.sln /p:Configuration=%debugOrRelease% /t:Rebuild
@PAUSE
echo 开始复制
if not exist %catPath% md %catPath%
if not exist %dogPath% md %catPath%
echo 复制Circus
xcopy %CircusInPath% %baseOutPath% /S /Y
echo 复制Cat
copy %catInPath%\Cat.dll %catPath% /Y
echo 复制Dog
xcopy %dogInPath% %dogPath% /S /Y
echo 复制完毕
@PAUSE
- vs2013 批处理程序自动编译实例
- Air批处理自动编译
- java自动编译批处理
- Delphi自动编译-批处理
- Java 自动编译运行 批处理
- 批处理自动编译 ftp上传
- 自动编译安装Delphi控件批处理
- VS2013编译C++程序闪烁即消失
- 利用VS2013编译C语言程序
- vs2013编译旧版本程序出错
- 利用VS2013编译C语言程序
- VS2013编译WinXP下运行程序注意事项
- 利用VS2013编译C语言程序
- 批处理程序自动切换IP地址代码
- 删除编译文件的批处理程序
- 自动批处理
- 一个自动布署.net网站的bat批处理实例
- 批处理批量编译java源文件,并有条件的自动执行
- CodeForces
- S5PV210开发板刷机(SD卡uboot、串口+USB-OTG刷机方法)
- HDU 1217 Arbitrage(最短路判断负环)
- C++ STL vector 用法详解
- Linux线程简述
- vs2013 批处理程序自动编译实例
- 数据结构-双向链表-插入排序练习题
- spring-mybatis配置使用jdbc.properties导致数据库连接获取不到
- ThreadLocal类与Synchonized对象锁的区别
- Python-第三方库requests详解
- 王者荣耀
- Unity3d--Event Functions事件函数【Awake()和Start()】
- org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for
- c#查找窗口是否存在