Hi,

 

I'm trying to execute tests in my assembly <projectName>.dll using the
task <Nunit2>. I get the error 

 

28-Jun-2010 10:02:17 Failure executing test(s). If you assembly is not
built using NUnit version 2.2.8.0, then ensure you have redirected
assembly bindings. Consult the documentation of the <nunit2> task for
more information. 28-Jun-2010 10:02:17     The specified module could
not be found. (Exception from HRESULT: 0x8007007E)

 

My project uses .Net 3.5 and Nunit 2.5.5. I'm able to execute my tests
successfully from visual Studio. I created a config file
"<projectName>.dll.config" under the same folder holding the dll with
the below content. I'm wondering if this is required as I'm not using an
old version of Nunit. In any case it doesn't seem to work. Could
somebody redirect me? Is the error saying that it could not find the
project dll?

 

<?xml version="1.0" encoding="utf-8" ?>

<configuration>

      <runtime>

      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

        <dependentAssembly>

          <assemblyIdentity name="nunit.framework"
publicKeyToken="96d09a1eb7f44a77" culture="Neutral" />

          <bindingRedirect oldVersion="2.0.6.0" newVersion="2.2.8.0" />

          <bindingRedirect oldVersion="2.1.4.0" newVersion="2.2.8.0" />

        </dependentAssembly>

      </assemblyBinding>

      </runtime>

</configuration>

 

Thanks,

Saritha.


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to