Having problems when two of referenced assemblies both define type A.A1

被刻印的时光 ゝ 提交于 2019-12-04 14:05:00

You can resolve this with the extern alias directive.

And here is a better explanation.

Referencing two assemblies having the same namespaces and same members within those namespaces is a complete no-no (i.e. don't do it!). I you have control over one or other of the assemblies, ensure that the root namespaces are different for the two and then you can disambiguate references to members within the assembly/namespace hierarchy.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!