该类型<&型GT;存在于两个的DLL两个、类型、GT、lt

2023-09-03 04:43:34 作者:伱是条狗,谁骚跟谁走

我有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?