title: Adding project dependencies to a solution file programmatically
body: <p>I have a C++ project that has dependencies to 4 C# projects. These dependencies are specified in an existing solution file. </p>
  
  <p>The trick is, when I copy the projects in my own C# app and give them new project GUID's, I want to add it an the existing solution file programmatically (not the solution file of my own C# app), including their project dependencies. This is pretty much where I'm stuck, is there any way to do this programmatically in C#?</p>
  
  <p>I need to do this from C# code that is not part of either the C# project or its dependencies.</p>
  
  <p>The following is the header of the solution file I need to edit:</p>
  
  <pre><code>Microsoft Visual Studio Solution File, Format Version 12.00
  # Visual Studio 15
  VisualStudioVersion = 15.0.27130.2010
  MinimumVisualStudioVersion = 10.0.40219.1
  </code></pre>