【发布时间】:2012-04-24 22:40:20
【问题描述】:
我有一个项目,其中有一些 C# 类,我在我的 ant 脚本中使用 csc 构建这些类。我还编写了一些单元测试,我想用 NUnit2.6 进行测试,如果我安装,我的测试类和实际类指的是一个用字符串键名 (.snk) 编译的 DLL我的 GAC (gacutil /i myDLL.dll) 中的这个 DLL 一切正常。一旦我从我的 gac 中卸载此 DLL,当我尝试使用 NUnit 运行我的测试时,我在构建期间的所有测试都会出现以下错误;
Test Error : fromJDynTest1
[exec] System.IO.FileNotFoundException : Could not load file or assembly 'myDLL, Version=5.1.0.0, Culture=neutral, PublicKeyToken=c0409b584f86b2d6' or one of its dependencies. The system cannot find the file specified.
[exec] at fromJDynTest1()
...
...
有谁知道如何解决这个问题。如果您需要任何其他信息,请告诉我。
谢谢
--
SJunejo
【问题讨论】: