该类型<&型GT;存在于两个的DLL [英] The type <type> exists in both DLLs

查看:105
本文介绍了该类型<&型GT;存在于两个的DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有1 DLL中的.Net 3.5框架,另一个在2.0。该 ListBoxItem的类存在于2.0和我在3.5 DLL在同一个命名空间链接的类。

I have 1 DLL in the .Net 3.5 framework and another in 2.0. The ListBoxItem class exists in 2.0 and I have linked the class in the 3.5 DLL in the same namespace.

当我尝试编译我得到一个存在于两个错误。我怎么可以编译,并保持相同的结构。

When I try to compile I get an "exists in both" error. How can I compile this and maintain the same structure.

我不想引用的DLL 2.0至3.5,以消除这个问题,我想保持这些DLL中分离出来。

I don't want reference the 2.0 DLL to 3.5 to eliminate this problem, I want keep these DLLs separate.

推荐答案

这似乎不是一个好主意,不管是什么,但改变了命名空间和完全限定的用途。

This doesn't seem like a good idea no matter what, but change the namespaces and fully qualify your usages.

否则,你为什么不只是引用一个DLL?

Otherwise, why don't you just reference one dll?

这篇关于该类型<&型GT;存在于两个的DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆