Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Project.ConfigurationManager Property

Gets the ConfigurationManager object for this Project .

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

ConfigurationManager ConfigurationManager { get; }
/** @property */
ConfigurationManager get_ConfigurationManager ()

function get ConfigurationManager () : ConfigurationManager

Property Value

A ConfigurationManager object.

The ConfigurationManager object represents the project configurations for a project or project item. A project configuration name and platform name uniquely identify each project configuration.

public void ConfigurationManagerExample(DTE2 dte)
    // Before running this sample, open a project.

    Project proj = dte.Solution.Item(1);
    ConfigurationManager manager = proj.ConfigurationManager;

    // Define a new Debug-based configuration for the project.
    Configurations configs = 
        manager.AddConfigurationRow("MyDebug", "Debug", false);
    string msg = "";

    // List all build configurations for the project.
    foreach (EnvDTE.Configuration config in configs)
        msg += config.ConfigurationName;

    MessageBox.Show(proj.Name + 
        " defines the following build configurations:\n\n" + msg);
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.