Link to home
Start Free TrialLog in
Avatar of davyberroho
davyberroho

asked on

Best way to add project references to another project ???

Hello,

I would like to know what's the  best way to add references to a project.


Example :

I've two 2 projects ...

   * Data Connection Project
   * Customer Project

The customer project must have access to the functions of the data connection project. For this, I've to add to data connection references to the customer project. What is the best way to add such references? Do I've to add the complete existing project to my customer solution? Or am I better to add only the dll who is located into the bin folder of my data connection project? What are differences between the two? I also want to be able to debug easily.

Last question... If my data connection also has a reference to another project like a global class (sql functionalities) do I've to add the complete solution (*.sln) to my customer class or only the project (so that all the including projects are references as well) ???


Thanks a lot for your help !!!!


ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of davyberroho
davyberroho

ASKER

Thanks a lot for your fast answer !

I've another question....
Is it normal that, once I've add the existing solution to my project, I still have to add a project-reference? (My Project --> references tab --> add references --> projects and then I've to choose the added project.) otherwise it cannot find the referenced project ???


Thanks a lot.

Yes, that is normal.  That is the nice part about project references.  It allows access to the code in the DLL project, and creates a reference binding when deploying it.

Bob
Thanks a lot Bob !!!


You certainly earn the 500 points ! ;-)



Thanks again!