views:

1329

answers:

1

What is the best way to reference a project inside solution.

I added references via Add Reference --> Projects. However it links to either release DLL or Debug dll.

I want to have project itself in the reference, when we compile the projects, all the references projects must be compiled (through dependencies).

How to do this?

+6  A: 

If you want to reference a project itself, and NOT a DLL/assembly (from the Browse tab in the Add Reference dialog), then you should add the project you want to reference to the Solution (Add... Existing Project). Once it's in the Solution, the Add Reference dialog will let you reference one project in the solution from another project in the solution (via the Projects tab in the Add Reference dialog).

Jeff Donnici