I recommend avoiding the nunit2 task at all and simply switch to <exec> nunit-console like it's done in the Common.Logging project:
http://netcommon.svn.sourceforge.net/viewvc/netcommon/projects/logging/trunk/shared/common-project.include?revision=147&view=markup look for the target "common.run-tests.nunit" or, if you look for ncover integration, "common.run-tests.ncover". This way you stay independent of particular nunit versions. hth, Erich > -----Original Message----- > From: Daniel Nauck [mailto:d...@mono-project.de] > Sent: Tuesday, July 21, 2009 10:03 AM > To: Danny Cheong > Cc: nant-users@lists.sourceforge.net > Subject: Re: [NAnt-users] Help with NAnt and NUnit 2.5.0.9122 > > Hello, > > you can try out my NUnit task, available here: [1] [2] > This one works with NUnit 2.4 and 2.5 > > The latest build is available here: [3] > > Daniel > > [1] http://dev.nauck-it.de/utilities/wiki/NAnt > [2]http://dev.nauck- > it.de/utilities/browser/NauckIT.NAnt/trunk/src/Tasks/NUnitTask.cs > [3] http://build.nauck-it.de/download/NauckIT.NAnt/ > > Danny Cheong schrieb: > > To Whom It May Concern: > > > > > > > > I am trying to upgrade NUnit from 2.2.10.xxxx to 2.5.0.9122. > > > > When I try to execute my unit tests using Nant, I get the following > error:- > > > > > > > > */Invalid element <nunit2>. Unknown task or datatype/* > > > > > > > > Everything was fine with NUnit 2.2.10. > > > > I am using NAnt 0.86.2898.0 > > > > > > > > Your help would be much appreciated as there is nothing on the > internet > > about this problem. > > > > The <nunit2> task element seem to only be relevant for NUnit 2.2 > > > > > > > > Regards, > > > > Danny. > > > > > > --------------------------------------------------------------------- > --- > > > > --------------------------------------------------------------------- > --------- > > Enter the BlackBerry Developer Challenge > > This is your chance to win up to $100,000 in prizes! For a limited > time, > > vendors submitting new applications to BlackBerry App World(TM) will > have > > the opportunity to enter the BlackBerry Developer Challenge. See full > prize > > details at: http://p.sf.net/sfu/Challenge > > > > > > --------------------------------------------------------------------- > --- > > > > _______________________________________________ > > NAnt-users mailing list > > NAnt-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nant-users > > ----------------------------------------------------------------------- > ------- > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited > time, > vendors submitting new applications to BlackBerry App World(TM) will > have > the opportunity to enter the BlackBerry Developer Challenge. See full > prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > NAnt-users mailing list > NAnt-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users