Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Configuration.ConfigurationName Property

Gets the project configuration to be built.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

string ConfigurationName { get; }

Property Value

Type: System.String
A string representing the name of 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.
   MsgBox(CM.Item(2).ConfigurationName)
End Sub

Show:
© 2015 Microsoft