如何解决这个问题?
我有这个ProjectName.UnitTests.config文件,我完全按照文档说的那样做了:http://nant.sourceforge.net/release/latest/help/tasks/nunit2.html
<?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>
答案 0 :(得分:0)
查找this thread on Sourceforge's nant-users mailing list。我会提供Erich Eichinger给出的相同建议:
我建议避免使用nunit2任务 根本就切换到
<exec>
nunit-console [...]
此外,您还可以使用NUnit 2.5获得额外的好处。