Can TypeForwardedTo be used without a direct project reference?

只谈情不闲聊 提交于 2020-01-16 18:03:40

问题


I have two C# projects, LibraryA and LibraryB, each producing a separate DLL.

LibraryA makes use of the classes in LibraryB.
LibraryB needs to make a TypeForwardedTo reference to class in LibraryA.
(See this question for background.)

Normally, I would resolve either issue by adding a project reference, but I can't do both because VS doesn't allow circular references.

The only reason I need the B-to-A reference is for the TypeForwardedTo link. I've tried using Type.GetType(string) but the attribute doesn't allow that type of function call.

Is there a way I can add a TypeForwardedToAttribute without using a project reference?

来源:https://stackoverflow.com/questions/47654493/can-typeforwardedto-be-used-without-a-direct-project-reference

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