Click here to Skip to main content
15,922,007 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want that I will be able to call method/classes from another project and/or vice versa. I already did "Add Reference then the project", (A references to B), I can access from B in A, but when I try to access from A...B couldn't. When I did another "Add Reference" now to B, there is an error prompt about cyclic reference something. How can I fix this?

I am basing on WPF.
Posted

1 solution

Hi,

Cyclic references aren't allowed so you should consider changing your design. In short the problem is that which library should be built first if they both depend on each other?

Try moving classes etc from the other library to the other or create a third library, kinda base-lib, where you gather all the common services.
 
Share this answer
 
Comments
Olivier Levrey 27-Feb-11 10:14am    
Voted 5. Proposed as answer.
Sergey Alexandrovich Kryukov 27-Feb-11 12:45pm    
Correct, my 5.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900