Nant is the scripting tool
for the Dot Net platform. It is inspired from its java counterpart,
is an open source project, with a homepage at http://nant.sourceforge.net.
links to many resources from this page. Additionally,
there is an adjunct to NAnt called NAntContrib. It has a homepage at http://nantcontrib.sourceforge.net. This project is for task
contributions to NAnt that do
not make it into the core NAnt release. Occasionally, tasks in
NAntContrib will make the
switch to NAnt.
Just before we dive in, let us clarify some of the terminology
that we will use when discussing
NAnt: The physical executable
(and the associated tasks) that form the application.
NAnt script/build script/build file: An XML file describing a project comprised of one or
more targets and zero or more properties.
Project: The root node of a build
script. Each script has one project.
Target: A subdivision of a
project. A target is a discrete piece of work that can consist of
zero or more tasks. Targets can be dependent on each other.
Task: A task is a defined
activity that NAnt will execute; for example, creating a directory
or zipping a file. There are many built-in tasks to NAnt, and we
will look at the most valuable
of these in Chapter 3.
Property: An XML
key/value pair that can be used to configure tasks and targets in a
more dynamic fashion.
Property values can be overridden from the command line.
Download the Nant executable
from the Nant site, http://nant.sourceforge.net. The latest
version was 0.85 at the time of writing this article. Extract the executable to
a local directory, say C:\Nant\. The binary executable for nant will be stored
in C:\Nant\bin, which is Nant.exe. This exe will be responsible for executing
your scripts. So
Either you have to dump
your scripts to C:\Nant folder or
Add the path (C:\Nant\bin) to your PATH