两种方式:
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中使用脚本
posted on 2005-08-28 10:25  RubyPDF  阅读(1481)  评论(2编辑  收藏  举报