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

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

本文简介:选择自 samlei 的 blog

                        install               resources for installation

            src                   project’ source files

                        config              project’s configuration files

                        database          project’s database files

                        cs                     project’s c# source code files

                        docs                project’s documents for manager, developer, tester

                        scripts              project’s script files

                        sql                   project’s script files for database

           

now put the .net files into the \src\cs directory.

 

the build file

            the build file is \build\project.build. in the template we already have a default build file. because every project has different name and configuration, so we must edit the build file to suit project. we must edit the project name and path in the build file.

 

run nant

            after doing that, now start a command-line prompt, change path to .\build, and type nant. we can see a function list like this:

now nant runs. we can edit the build file to add new features: unit testing, packing, deploying, etc, as you like.

 

project.build 文件内容:

<?xml version="1.0" ?>
<project default="usage" basedir=".">

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

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

go top