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

 

Reply via email to