两种方式:
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中使用脚本
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>

浙公网安备 33010602011771号