This documentation is archived and is not being maintained.

VCConfiguration.ConfigurationName Property

Gets or sets the project configuration to be built.

Namespace:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

string ConfigurationName { get; set; }

Property Value

Type: System.String
The project configuration to be built.

ConfigurationName can be set to any defined project configuration named by the ProjectName property.

Sub ConfigurationNameExample()
   ' Before running, load a project.
   ' Set references to all necessary objects.
   Dim CM As ConfigurationManager = DTE.Solution.Projects.Item(1).ConfigurationManager
   ' List the configuration name used for the current project.
End Sub