自动化每日构建(三)用NAnt来完成.NET工程的每日构建[4]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 samlei 的 blog

        <echo message="   compile   --> compiles the source code"/>
        <echo message="   test      --> unit test"/>
        <echo message="   release   --> build the installation package"/>
        <echo message="   deploy    --> deploy the application"/>
        <echo message="   clean     --> cleans up the directory"/>
        <echo message=""/>
        <echo message=" see the comments inside the *.build file for more details."/>
        <echo message="-------------------------------------------------------------"/>
        <echo message=""/>
        <echo message=""/>
    </target>
   
    <!-- =================================================================== -->
    <!-- compiles the source directory                                       -->
    <!-- =================================================================== -->
    <target name="compile" depends="init">
        <mkdir dir="${s.build.bin}"/>
        <echo message=""/>
        <echo message="compiling application main source..."/>
        <echo message="${s.srccs}/${name}/*.cs"/>

        <!-- you may change the compile tasks here.  -->
    
  <!-- first compile way: using solution task  -->
      <solution configuration="release" solutionfile="${s.srccs}/${name}/${name}.sln"
          outputdir="${s.build.bin}" />

  <!-- second compile way: using csc task for c# file  -->
  <!--
        <csc target="exe" warnaserror="true" debug="${debug}"
             output="${s.build.bin}/${name}.exe" >
            <sources failonempty="true">
                <includes name="${s.srccs}/${name}/*.cs" />
            </sources>
        </csc>  
        -->
       
    </target>
        


    <!-- =================================================================== -->
    <!-- creates the zip package                                             -->
    <!-- =================================================================== -->
    <target name="package" depends="compile">

        <!-- you may change the package tasks here.  -->

    </target>


    <!-- =================================================================== -->
    <!-- creates the deploy                                                  -->
    <!-- =================================================================== -->
    <target name="test" depends="compile">

本文关键:自动化每日构建(三)用NAnt来完成.NET工程的每日构建
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top