Building NAnt 0.8.4 from src w/ Visual Studio .NET 2003

First of all, set up your PATH env var to point to \bin. If you're on Windows 2000, log out and log back in, so that the environment variable is registered in the dos box. If you don't want to do this, copy the PATH string and paste it into the dos box like this:

c:\> set path=THE_PATH_TEXT_YOU_JUST_COPIED

Then to build go to your nant directory and type: nant

I had two problems:

(1) A test fails in Tests.NAnt.Console.Test_ShowHelp().

To fix:

The copyright message (set in \src\CommonAssemblyInfo.cs, on line 37) was set to 2001-2003 for the AssemblyCopyright assembly attribute.

Just change this to be 2001-2004 or whatever year you are reading this.

(2) Other tests fail when it is trying to execute the HelloWorld test project. This occurred because i hadn't set the visual studio environment vars.

To do this, make sure your path includes your Visual Studio Tools directory, which will be something like this path: X:\Microsoft Visual Studio .NET 2003\Common7\ToolsIn win2k, log out and in, as above. Then type vsvars32.bat in a dos box. Then build nant again, by typing nant.

Everything should build now, and you will have the build result in: YOUR_NANT_DIR\build\net-1.0.win32\nant-0.84-debug\bin

No comments:

Post a Comment