问题描述
我有3个项目的解决方案:
I have a solution with 3 projects:
- ParsersBase,定义一个接口IParseRule
- ParsersLibrary,即必须ParsersBase参考,并定义一个类HtmlImageUrlParseRule:IParseRule
- ParsersLibraryTest,即必须ParsersBase和ParsersLibrary参考,并定义了一些测试方法的测试类
当我试图建立它,我得到一个警告:
When I'm trying to build it, I get a warning:
参考键入AVSoft.ParsersBase.IParseRule声称它是在'C定义:\Users\Tim\Dropbox\projects\Image Downloader\ParsersLibrary\bin\Debug\ ParsersLibrary.dll,但它可能不会被发现。
为什么VS正试图找到 AVSoft.ParsersBase。 IParseRule
在ParsersLibrary.dll? ParsersLibraryTest有ParsersBase一个参考,它只是没有任何意义。
Why VS is trying to find AVSoft.ParsersBase.IParseRule
in ParsersLibrary.dll? ParsersLibraryTest has a reference to ParsersBase, it just doesn't make any sense.
推荐答案
是我的错,我有一个ParsersLibrary在启动项目,然后将其重命名为ParsersBase,但我没有重命名程序集的名字,然后我再补充一个ParsersLibrary项目。
It was my fault, I had a ParsersLibrary project at the start and then renamed it to ParsersBase, but I didn't rename an assembly name, then I added a ParsersLibrary project again.
因此,两个项目有相同的程序集名称,它不是非常好,是吗? :)组件相互重叠,所以我有这样的错误。
So, two projects had the same assembly name and it's not very good, is it? :) Assemblies overlap each other, so I have this error.
这篇关于错误:引用类型声称它是定义,但它可能不会被发现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!