How to add a project as a reference of another project

I'm trying to add a project that contains some classes as a reference to another project, but I have not got, all your suggestions will be great

Thank you

enter image description here

Upvotes: 30

Views: 82491

Answers (1)

Sage Pourpre
Sage Pourpre

Reputation: 10333

Do the following:

  1. Open the File menu.
  2. Choose Add, then Existing project
  3. Add the project you want into your solution

senter image description here

  1. From the solution explorer, select the References item of the project you want to need to reference the "other project" into.

  2. Click on Add reference

  3. Choose the project item

  4. Add your other project as reference to the main project.

enter image description here

Alternatively, you can compile the other project as DLL and add it (as dll) to your main project.

Upvotes: 57

Related Questions