You can create a new empty solution using DTE, for example:
string visualStudioProgID = "VisualStudio.Solution.9.0"; Type solutionObjectType = System.Type.GetTypeFromProgID(visualStudioProgID, true); object obj = System.Activator.CreateInstance(solutionObjectType, true); Solution3 solutionObject = (Solution3)obj; solutionObject.Create(".", "MySolution"); solutionObject.SaveAs(@"C:\Temp\MySolution.sln");
You need to add links to EnvDTE.dll, EnvDTE80.dll and EnvDTE90.dll. The file you received is very simple and can be created in other ways (as a text file).
source share