Post-Build Event command line
来源:互联网 发布:淘宝电脑端描述图尺寸 编辑:程序博客网 时间:2024/05/21 21:46
在vs2003 和2005中都支持了Build Events, 但是2003只支持单行的命令,而2005可以支持多行命令.
要想在2003中执行多行命令,只能把命令写在一个批处理文件中,然后通过调用批处理来执行.
1.在Solution explorer中用context meun查看project的property.
2.选择Build Events,可以看到Pre-build 和Post-build event command line,以及运行Post-build event 的条件
//——————————————————
用法收集
1.build完后修改build产物的名字(后缀),并覆盖已有的同名文件.
copy $(TargetFileName) $(TargetName).XXX y
2. 调用外部命令或批处理:
call "C:/Program Files/XXX.exe"
3. 条件判断:
IF NOT $(ConfigurationName) == Release GOTO end
call "C:/Program Files/XXX.exe" $(ProjectDir)$(TargetName).cvp
:end
4.web project 自动部署
copy $(TargetDir)*.* //MyServer/MyService/bin
copy $(ProjectDir)*.ascx //MyServer/MyService
5. copy from one path to the other path
Copy "$(ProjectDir)pri.bin" "$(SolutionDir)$(SolutionName)/$(OutDir)"
copy pri.bin(file name) from $(ProjectDir) to $(SolutionDir)$(SolutionName)/$(OutDir)
//——————————————————
Macro收集
$(DevEnvDir)
$(ProjectDir)
$(BuiltOuputPath)
$(ConfigurationName)
$(TargetName) 不含扩展名
$(TargetFileName) 包含扩展名
- Post-Build Event command line
- Post-Build Event command line
- Post-Build Event Command Line
- Post-Build Event command line
- Post-BUILD Event Command Line
- build event command line
- build event command line
- Visual Studio build event command line 使用方法
- Visual Studio build event command line 使用方法
- Command Line Build
- 关于Post Build Event
- post-build command 设置
- Event Configuration from the Command Line
- VC 生成后事件 Post-Build Event
- VC 生成后事件 Post-Build Event
- VC 生成后事件 Post-Build Event
- VS生成事件 Pre/Post-Build Event
- unknown command-line argument or argument value build错误
- 创业就像爬山
- orbit 的介绍
- 还是Hello World
- ORA-12154: TNS:could not resolve service name无法解析指定的连接标志符
- 用Java向IPMSG发送消息
- Post-Build Event command line
- struts2.0拦截器的用法
- Asp.net Forums 论坛web.config文件详解
- C++获得本机IP地址
- java 的 日期时间类
- Ubuntu下编译飞鸽传书(IPMsg)
- The gift is the present
- asp.net2.0中泛型的使用
- 关于S60 3rd SDK+VC2005+Carbide.vs 3.0出现的两个问题的解决办法