问题
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