Adding a ProjectReference to a project that is not in the same solution

Viewed 24032

While doing some refactoring of our projects and solution files, i have separated some .sln files to contain less projects.

Occasionally i need to reference some projects from outside the scope of the current .sln file.

For example, my initial state was this:

SOLUTION A

  • PROJ A
  • PROJ B

After refactoring it would look like this:

SOLUTION A_NEW

  • PROJ A

SOLUTION B_NEW

  • PROJ B

My question is -- Is it possible to add a ProjectReference node to a project that is not defined in the same VS solution? (in my case, having PROJ A have a project reference to PROJ B).

Also, if it is possible, is that recommended?

I know that this is not possible from the VS IDE, only by editing the .csproj file manually.

3 Answers
Related