I downloaded the latest code for NHibernate 2.0.x from the Subversion repository.

When I ran nant to build the code, it was displaying a whole bunch of errors as soon as it got to the Iesi.Collections.Test project:

NH2.0.x-branch\src\Iesi.Collections.Test\Generic\HashedSetFixture.cs(7,7): error CS0246: The type or namespace name 'NUnit' could not be found (are you missing a using directive or an assembly reference?)

Turns out because I’m using a current nightly build of nant, it defaults to .NET 3.5. Forcing it to use .NET 2.0 (using the –t argument) seems to do the trick. eg.

nant -D:with.core.only=true -D:skip.tests=true -t:net-2.0