【发布时间】:2010-10-29 12:13:13
【问题描述】:
我正在尝试使用 .net 2.0(客户端要求:p)创建一个小应用程序,并且我添加了对 Rhino Mocks dll 文件的引用,然后使用 VS2008 编译它,一切都很好。
但是当我在项目上运行ant时,出现以下错误:
[nunit2] 安装/拆卸失败: [nunit2] 1) DocGen.Test.TestDocumentConfigurator:无法加载文件或程序集“Rhino.Mocks,版本=3.1.0.584,文化=中性,PublicKeyToken=0b3305902db7183f”或其依赖项之一。该系统找不到指定的文件。 [nunit2] 在 DocGen.Test.TestDocumentConfigurator..ctor()
这是我的目标:
我的解决办法是这样的:
Solution-
DocGen.Test (test project, contains a reference to the DLL)
DocGenerator (main app, which has the DLL in its \lib directory)
我真的不知道那告诉我什么...它构建在 VS2008 中,但不是在 nant 中。为什么会这样?
附:当我运行 Nunit 的 GUI 版本时,我也会收到此错误...
感谢您的帮助!
【问题讨论】:
标签: .net nunit nant rhino-mocks