Mark,

You need to upgrade to a more recent nightly build of NAnt (http://nant.sourceforge.net/nightly/builds).

That will definitely fix your problem, as I ran into this myself ...

Gert

----- Original Message ----- From: "Mark Overton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 20, 2004 3:28 PM
Subject: [Nant-users] NNunt2 task errors out during build



I am trying to run an NUnit2 task.

I am using Version 2.2 of Nunit, version .85 of Nant and version 1.1 of
.Net

Here is my task:

<nunit2>
<formatter type="Plain" />
<test assemblyname="./Mydll.Core/Tests/bin/debug/Mydll.Core.Tests.dll"
appconfig="./Mydll.Core/Tests/Mydll.Core.Tests.dll.config"  />
</nunit2>

I added the runtime assembly redirect to the config file like this:

   <configuration>
       <runtime>
           <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
               <dependentAssembly>
                   <assemblyIdentity name="nunit.framework"
publicKeyToken="96d09a1eb7f44a77" culture="Neutral" />
                   <bindingRedirect oldVersion="2.1.4.0"
newVersion="2.2.0.0" />
               </dependentAssembly>
               <dependentAssembly>
                   <assemblyIdentity name="nunit.core"
publicKeyToken="96d09a1eb7f44a77" culture="Neutral" />
                   <bindingRedirect oldVersion="2.1.4.0"
newVersion="2.2.0.0" />
               </dependentAssembly>
           </assemblyBinding>
       </runtime>
   </configuration>

But I am getting the following error:

NUnit error.
   Could not load type NUnit.Core.RemoteTestRunner from assembly
nunit.framework, Version=2.2.0.0, Culture=neutral,
PublicKeyToken=96d09a1eb7f44a77.


Both NUnit.Core version 2.2 and NUnit.Framework version 2.2 are in the GAC.

Does anyone have any ideas?

Thanks,

Mark




------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to