I am running into the same problem. According to nUnit website at SourceForge,
2.2.2 is the latest version of nUnit. So when I went to the nUnit site, this is
the one that I downloaded and used to build. Is there anyway to use NUnit 2.2.2 with
NAnt <nunut2> task? I tried adding the binding redirect from
2.2.2.0 to 2.2.0.0 per the documentation and it still does not work. (I have
tried using the binding redirect in both directions and both in the “nant.exe.config”
and app config files to no avail.) I also tried copying the newer assemblies
to the nant/bin/lib/1.1 directory. This caused NAnt to fail with an exception –
apparently between nunit 2.2 and 2.2.2 a method has changed in the nunit.core
assembly. (In 2.2.2, they return a list of frameworks instead of a single
framework version in 2.2) Should I file a bug report with nant
requesting ability to use current version of nunit? Should I give up on <nunit2> and use
<exec> instead? - Tony From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Foster, Richard - PAL 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 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> 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
----------------------------------------
_______________________________ This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. |
Title: .85 RC3 and Nunit 2.2
- [Nant-users] .85 RC3 and Nunit 2.2 Peter Jones
- RE: [Nant-users] .85 RC3 and Nunit 2.2 Foster, Richard - PAL
- Re: [Nant-users] .85 RC3 and Nunit 2.2 Mike Roberts
- RE: [Nant-users] .85 RC3 and Nunit 2.2 Tony_Bjerstedt
- RE: [Nant-users] .85 RC3 and Nunit 2.2 Gert Driesen
- RE: [Nant-users] .85 RC3 and Nunit 2.2 Charlie Poole
- RE: [Nant-users] .85 RC3 and Nunit 2.2 Blagassie