Commands for NAnt: =================== NAnt is a command line utility for .NET build. It reads the build.xml file to build the project, create exe and dll files. Basic usage command and different options for NAnt are as under: ================================================================ Usage : NAnt [options] ... Options : -t[argetframework]: Specifies the framework to target -defaultframework: Specifies the framework to target (Short format: /k) -buildfile: Use given buildfile (Short format: /f) -v[erbose][+|-] Displays more information during build process -debug[+|-] Displays debug information during build process -q[uiet][+|-] Displays only error or warning messages during build process -e[macs][+|-] Produce logging information without adornments -find[+|-] Search parent directories for build file -indent: Indentation level of build output -D:= Use value for given property -logger: Use given type as logger -l[ogfile]: Use value as name of log output file -listener: Add an instance of class as a project listener -ext[ension]: Load NAnt extensions from the specified assembly -projecthelp[+|-] Prints project help information -nologo[+|-] Suppresses display of the logo banner -h[elp][+|-] Prints this message A file ending in .build will be used if no buildfile is specified. Some examples: ============== nant clean => cleans the built project. In other words deletes exe and other files made by the build. nant -logger:NAnt.Core.XmlLogger -l:log.xml => creates the xml log file. Other option is to send it through mail with inbuilt send mail utility. Structure of small build file is as under: ========================================== BUild file is an xml file which provides instruction / commands to NAnt what to do for the current project. ----------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------- BUild file above creates exe file for the Visual Basic, C# and Jscript file present in the current directory.