Getting NBehave to work with NUnit 2.5.5

2010-05-20 14:37:51 +0000

NBehave depends on NUnit 2.5.2. To get it to work with NUnit 2.5.5, you can create an NBehave-Console.exe.config file containing the following:

xml version="1.0" encoding="utf-8" ?>
«/span>configuration>
  «/span>runtime>
    «/span>assemblyBinding xmlns=urn:schemas-microsoft-com:asm.v1>
      «/span>dependentAssembly>
        «/span>assemblyIdentity name=nunit.framework
                          culture=neutral
                          publicKeyToken=96d09a1eb7f44a77/>
        «/span>bindingRedirect oldVersion=2.5.2.9222newVersion=2.5.5.10112/>
      </
dependentAssembly>
    </
assemblyBinding>
  </
runtime>
</
configuration>

This will cause it to use 2.5.5.10112 instead of 2.5.2.9222. You’ll also need to overwrite the copy of nunit.framework in the NBehave directory with the newer version.