SolutionFolder::DTE Property
Visual Studio 2015
Gets the top-level extensibility object.
Assembly: EnvDTE80 (in EnvDTE80.dll)
In Visual Studio, the DTE object is the root of the automation model, which other object models often call "Application".
This example creates a new solution folder and adds a project to it from an existing file. It then uses a message box to display the caption of the main window, obtained through the DTE object. 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. You need to also open a project in the Visual Studio integrated development environment (IDE) before running this example.
Show: