SolutionFolder::AddSolutionFolder Method (String^)
Visual Studio 2015
Adds a solution folder to a ProjectItems collection.
Assembly: EnvDTE80 (in EnvDTE80.dll)
Parameters
- Name
-
Type:
System::String^
The name of the solution folder.
AddSolutionFolder returns a Project object that you can be cast or query interface (QI) to a SolutionFolder object.
This example creates a new solution folder and adds a project to it from an existing file. It also adds a new nested solution folder to the first one by using the AddSolutionFolder method. Before running this example, create a "Projects" folder off your main drive ("C:" in this example), and create a Visual C# class library project, named "ClassLibrary1" in that folder. Open a project in the Visual Studio integrated development environment (IDE) before running this example.
Show: