Project.ConfigurationManager 속성

Project에 대한 ConfigurationManager 개체를 가져옵니다.

네임스페이스:  EnvDTE
어셈블리:  EnvDTE(EnvDTE.dll)

구문

‘선언
ReadOnly Property ConfigurationManager As ConfigurationManager
ConfigurationManager ConfigurationManager { get; }
property ConfigurationManager^ ConfigurationManager {
    ConfigurationManager^ get ();
}
abstract ConfigurationManager : ConfigurationManager with get
function get ConfigurationManager () : ConfigurationManager

속성 값

형식: EnvDTE.ConfigurationManager
ConfigurationManager 개체

설명

ConfigurationManager 프로젝트 또는 프로젝트 항목에 대 한 프로젝트 구성 개체를 나타냅니다. 프로젝트 구성 이름 및 플랫폼 이름의 각 프로젝트 구성 고유 하 게 식별 합니다.

예제

Sub ConfigurationManagerExample(ByVal dte As DTE2)

    ' Before running this sample, open a project.

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

    ' Define a new Debug-based configuration for the project.
    Dim configs As Configurations = _
        manager.AddConfigurationRow("MyDebug", "Debug", False)
    Dim config As EnvDTE.Configuration
    Dim msg As String

    ' List all build configurations for the project.
    For Each config In configs
        msg &= config.ConfigurationName
    Next

    MsgBox(proj.Name & " defines the following build configurations:" _
        & vbCrLf & vbCrLf & msg)

End Sub
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);
}

.NET Framework 보안

참고 항목

참조

Project 인터페이스

EnvDTE 네임스페이스

기타 리소스

방법: 자동화 개체 모델 코드의 예제 컴파일 및 실행