How to add a project as a reference of another pro

2020-02-05 15:34发布

问题:

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

回答1:

Do the following:

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

s

  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.

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