您的位置:首页 > 产品设计 > UI/UE

在NAnt Build中实现自动版本号更新

2005-08-28 10:25 453 查看
两种方式:
1.在NAnt Build 中使用UpdateVersion小程序

<project name="ExecTest" default="test">

<tstamp/>

<target name="test" description="tests using exec to run UpdateVersion.exe">

<echo message="********************************************************************"/>

<echo message="** Running UpdateVersion.exe."/>

<exec program="UpdateVersion.exe" commandline="-b MonthDay -s 2002-01-21 -i Input.txt -o

Output.txt" verbose="true" failonerror="true" />

<echo message="** End of Tests"/>

<echo message="********************************************************************"/>

</target>

</project>

2.直接参考UpdateVersion的build文件,在NAnt中使用脚本
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: