Visual Studio: How to make one solution depend on another?

Robert Fraser picture Robert Fraser · Jul 20, 2009 · Viewed 21.8k times · Source

Is it possible to make a solution in VS depend on (i.e. include) an entire other solution? I've seen some stuff about "Solution Folders", but these don't seem to be the same thing....? Thanks! (BTW, I'm using VS 2008)

Answer

Sam Harwell picture Sam Harwell · Jul 20, 2009

Not really. You'd have to do one of the following:

  • Make a build script that builds the solutions in the correct order.
  • Pre-build solution A, and only reference the built binary outputs from it in solution B.
  • Make a third solution containing all of the projects from both solutions.

The first two items are the most common, where I personally prefer the second.