<nunit2> is not working correctly.

Posted by Bobby on Stack Overflow See other posts from Stack Overflow or by Bobby
Published on 2010-03-21T14:21:46Z Indexed on 2010/03/26 17:23 UTC
Read the original article Hit count: 355

Filed under:
|

I have the following task in my nant script:

<nunit2 verbose="true">
            <formatter type="Plain" />
            <test assemblyname="${output}\Test.dll" appconfig="${project.src.root}\Test\Test.config"/>
</nunit2>

Test.config is the following:

<?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.5.3.9345" newVersion="2.2.8.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>

I get an error when i run this task saying could not load nunit.framework. I know nunit is not in the GAC (not strongly signed). Does Nunit have to be in the GAC for this task to work?

© Stack Overflow or respective owner

Related posts about c#

Related posts about nant