Steuern von Projekten und Projektmappen
Aktualisiert: November 2007
The Visual Studio automation model provides objects and collections that enable you to control the solution, projects, and the project items within the project, regardless of the programming language in which the application was written.
In addition to this core, language-agnostic project automation model, each programming language has its own project automation model which provides access to features unique to that language.
Objects and Collections
The Solution2 object and the Projects collection (which is returned by Projects and Projects) contain a reference to the solution, as well as references to all projects in that solution, respectively.
The ProjectItems collection represents all items contained in a project (Project), with the exception of virtual projects. The ProjectItem object represents individual items within the project.
A virtual project is one that is not associated with a particular project but is rather associated with the solution. A solution can contain two additional virtual projects: the Solution Items and the Miscellaneous Files projects.
To learn more about |
See |
---|---|
Controlling the solution, and projects within the solution. |
|
How to programmatically create solution and project build configurations. |
Gewusst wie: Erstellen der Buildkonfigurationen von Projektmappen und Projekten |
Dealing with projects that do not support the Visual Studio automation model. |
|
Working with the virtual projects — Solution Items and Miscellaneous Items projects. |
|
Saving solution and project variable values between integrated development environment (IDE) sessions. |
|
Manipulating Solution Explorer. |
|
Controlling Visual Basic, Visual C#, and Visual J# projects. |
|
Controlling Visual C++ projects. |
Microsoft.VisualStudio.VCProject and Microsoft.VisualStudio.VCProjectEngine. |
Siehe auch
Aufgaben
Gewusst wie: Hinzufügen und Ändern von Befehlen
Gewusst wie: Erstellen von Add-Ins
Exemplarische Vorgehensweise: Erstellen eines Assistenten
Konzepte
Einführung in Projektmappen, Projekte und Elemente
Diagramm "Automationsobjektmodell"
Weitere Ressourcen
Erstellen und Steuern von Umgebungsfenstern