posted on Thursday, September 23, 2004 9:16 AM by mlorengo

Installing Nant

As part of preparing to write some code for the Virtual Cellar, I've installed a source code provider (SubVersion), VS2003, and now I will be installing Nant.

I've chosen to download version 0.84 and unzipped it to the d:\nant-0.84 folder. I'll want to setup a NANT_HOME environment variable that points to this folder, and then modify my path to contain the %NANT_HOME%\bin folder so that I can run Nant from any directory.

Specifying a NANT_HOME environment variable will allow me have multiple versions of Nant on my machine without having to change my scripts.

After doing the above I can test my Nant Installation by typing:

d:>nant
NAnt 0.84 (Build 0.84.1455.0; net-1.0.win32; release; 12/26/2003)
Copyright (C) 2001-2003 Gerry Shaw
http://nant.sourceforge.net

BUILD FAILED

Could not find a '*.build' file in 'D:\'

For more information regarding the cause of the build failure, enable log4net us
ing the instructions in NAnt.exe.config and run the build again.

Try 'nant -help' for more information

It all looks good. The next step will be to create a new VS2003 solution for the VirtualCellar system. I'll go ahead an create the following projects and folder structure.

d:\VirtualCellar\Lorengo.VirtualCellar.Business
This will contain all of the domain model classes for the application

d:\VirtualCellar\Lorengo.VirtualCellar.UI.Console
This will contain all of the UI code for the console version of the application.

Of course all this code will then be added to the Subversion repository

Tomorrow, I'll go ahead and install NUnit (and maybe MbUnit) and begin writing tests for my first User Story.

Comments