Creating a solution dynamically

  • Thread starter Thread starter udi.ben-senior
  • Start date Start date
U

udi.ben-senior

Hi,
Does anyone know how do I create a .NET solution dynamically?
I have a csharp file I need to wrap in a solution and add some
references to it (- all done by another application at run time of
course).
I guess I need to use the visual studio classes.
Can someone drop me a lead on that issue?
Thanks!
Udi.
 
Hi,

You should indeed use the DTE.Solution class for this purpose. This is a COM
class so you will need an interop assembly.
Once you've get hold of a reference to the Solution class, please refer to
MSDN documentation on Visual Studio extensibility (I remember there was a
dedicated section on manipulating projects and solutions).

Please feel free to follow up with further questions!
 
Back
Top