How can I create new blank solution in vs 2008 programmatically?
问题 The design based approach is: New Project -> Other Project Type -> Visual Studio Solution -> Blank Solution I have to create a blank solution programmatically in C# and in this solution add new empty project and files. i found a lot of code on the web using DTE but they are adding my empty project in existing solution explorer so please give me some reference code. 回答1: You can create a new blank solution using DTE like this: string visualStudioProgID = "VisualStudio.Solution.9.0"; Type