Create a blank solution using the envdte
Hello,
I have a list of project files (all full path and name)
and I want to create a new solution and then add all these projects to this solution.
This is what I tried.
EnvDTE.Solution mysol = new EnvDTE.SolutionClass();
mySol.Create(@"C:\temp", "dummySolution.sln");
foreach(string myProj in _Projects) //_Projects is a list of project files)
{
mySol.AddFromFile(myProj, true);
}
mySol.Save(@"C:\temp\dummySolution.sln")
The application keeps on busy for a while and then I get a System.Runtime.InteropServices.COMEException
Additional information: Server execution failed.
Can anybody tell me what is wrong or what I should do instaid.
Thanks in advance,
Johan.