Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi,

i want to add project reference for project-1 and project-2 vice versa for windows form application using c#
Posted
Comments
Thomas Daniels 30-Jul-13 3:29am    
What have you tried? Where are you stuck?
Pheonyx 30-Jul-13 4:16am    
If you want to add a reference to project 1 in project 2, and a reference to project 2 in project 1 you might have an issue as it will cause a circular reference loop which I have a feeling is not allowed. If you have a solution that is designed like that you need to re-think your design.
Sushil Mate 30-Jul-13 4:18am    
if you are saying, you want to add reference of project 1 in project 2 & vice versa. the answer is no, it will create circular reference.

1 solution

Creating a reference to P2 in P1 and to P1 in P2 is probably not a good idea. As has been said, this creates circular references which are not helpful.

A much, much better idea is to create a third (DLL) project which holds the "common" elements and which both of your projects reference. That way, the interdependence of the projects is reduce, which can only be better from a design standpoint, and a reliability / maintainability point of view as well.
 
Share this answer
 

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