本文介绍了nant:无效元素nunit2.未知的任务或数据类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何解决这个问题?
我有这个ProjectName.UnitTests.config文件,并且完全按照文档中的说明进行了操作: http://nant.sourceforge.net/release/latest/help/tasks/nunit2.html
I have this ProjectName.UnitTests.config file, and I did exactly what the documentation said: 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>
推荐答案
查找此线程位于Sourceforge的nant-users邮件列表.我会提供Erich Eichinger提供的相同建议:
Find this thread on Sourceforge's nant-users mailing list. I would provide the same advice Erich Eichinger gives:
此外,您还可以使用NUnit 2.5获得更多好处.
Additionally you get some extra goodness with NUnit 2.5.
这篇关于nant:无效元素nunit2.未知的任务或数据类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!