【发布时间】:2010-03-21 14:21:46
【问题描述】:
我的 nant 脚本中有以下任务:
<nunit2 verbose="true">
<formatter type="Plain" />
<test assemblyname="${output}\Test.dll" appconfig="${project.src.root}\Test\Test.config"/>
</nunit2>
Test.config 如下:
<?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>
运行此任务时出现错误,提示无法加载 nunit.framework。我知道 nunit 不在 GAC 中(没有强签名)。 Nunit 是否必须加入 GAC 才能执行此任务?
【问题讨论】:
-
NUnit 不一定要在 GAC 中才能工作。