PDA

View Full Version : Anyone use Nant? (warning - geek alert)


thor
25-01-07, 11:42 AM
I've been using Nant to drive some nunit tests. Problem is, nunit/nant is using the ADO 2.0 libraries to connect to SQL server 2000, instead of the ADO 1 libraries I used to write the tests in. When I use Nunit outside of Nant, it uses the correct version, but nant binds to the newer versions. The newer versions are failing to connect to the server and therefore my tests fail in nant even though they work in VS2003 and the Nunit windows form.

Uninstalling the .Net 2.0 framework resolves the issue, but that's not desirable.

Anyone had the same issue? Can't find anything on google or the doc/bug pages of nant or nunit. I have upgraded to the latest versions of both.

Luckypants
25-01-07, 12:42 PM
I use the Nant-y-Garth a lot, does that count?

Sorry, carry on.

Grinch
25-01-07, 12:52 PM
Uninstalling the .Net 2.0 framework resolves the issue, but that's not desirable.

Seems very desirable to me...

thor
25-01-07, 12:53 PM
:smt017

:compcrash:

rpwoodman
25-01-07, 01:41 PM
I think you need to create a nant.exe.config file. Have a look at this.

http://nant.sourceforge.net/release/latest/help/fundamentals/properties.html

HTH

Rgds

Rupert.

thor
25-01-07, 05:53 PM
I've already checked the default framework in the nant config file, and also the build script explicitly states which framework to use. No joy! :(