I agree with Richard here - I find the NUnit tasks in NAnt to cause
problems and just use <exec>

<blatent-self-promotion>

http://mikeroberts.thoughtworks.net/blog/archive/Tech/dotNet/Howtosetupa.NETDevelopmentTreePart7.html

</>

Mike

On 7/26/05, Foster, Richard - PAL <[EMAIL PROTECTED]> wrote:
>  
> Peter, 
>   
> Do you *need* to use the <nunit2> task? I've had much more success using
> <exec>, and it means that I can change my version of NUnit at will. Don't
> forget, to use the NUnit2 task, you have to use the same version of the
> NUnit framework that Nant was compiled against... and I *think* that may be
> 2.2.0, not a more recent version. 
>   
> Regards, 
> Richard
>  
>  ________________________________
>  From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Peter Jones
> Sent: Tuesday, July 26, 2005 03:51
> To: nant-users@lists.sourceforge.net
> Subject: [Nant-users] .85 RC3 and Nunit 2.2
> 
>  
>  
> 
> I see a few messages in the archive regarding using Nunit 2.2 with RC3, but
> nothing that really helps me. 
> 
> I'm getting an error:    [nunit2] Assembly "c:\blah\Tests.dll" was not built
> with the NUnit framework and/or contains no tests. 
> 
> I have Nunit 2.2.2.0 installed and I can use TestDriven.Net to run the tests
> without problem, inside VS.Net. 
> 
> Using Reflector I can see that Nant is correctly building the test.dll with
> it's version of Nunit.  My target looks like this: 
> 
>     <nunit2> 
>       <formatter type="Plain" /> 
>       <test appconfig="${testdir}\app.exe.config"
> assemblyname="${outdir}\Tests.dll" /> 
>     </nunit2> 
>  
> 
> Anyone got any ideas?  I can try .84 I suppose… :{  Any helpful suggestions
> would be great as I need to demo this at a user group in a couple of weeks. 
> 
> Thanks 
>  
> 
> ---------------------------------------- 
> Peter G Jones 
> Microsoft .Net MVP 
> Christchurch, New Zealand 
> http://jonesie.net.nz 
> ---------------------------------------- 
>  


-- 
mike roberts | http://mikeroberts.thoughtworks.net/ |
http://www.thoughtworks.com/

Reply via email to