Configuration.IsBuildable Özellik

Tanım

Proje veya proje öğesi yapılandırmasının oluşturulup oluşturulamayacağını alır.

public:
 property bool IsBuildable { bool get(); };
public:
 property bool IsBuildable { bool get(); };
[System.Runtime.InteropServices.DispId(8)]
public bool IsBuildable { [System.Runtime.InteropServices.DispId(8)] get; }
[<System.Runtime.InteropServices.DispId(8)>]
[<get: System.Runtime.InteropServices.DispId(8)>]
member this.IsBuildable : bool
Public ReadOnly Property IsBuildable As Boolean

Özellik Değeri

Boolean

trueBir proje veya proje öğesinin oluşturulup oluşturulmayacağını belirten bir Boole değeri false .

Öznitelikler

Örnekler

public void CodeExample(DTE2 dte, AddIn addin)  
{   // Make sure you have a solution loaded into Visual Studio  
    // before running the following example.  
    try  
    {  
        Project prj;  
        Configuration config;  
        if (dte.Solution.Projects.Count > 0)  
        {  
            prj = dte.Solution.Projects.Item(1);  
            config = prj.ConfigurationManager.ActiveConfiguration;  
            // Determine and show whether the active configuration is buildable.  
            MessageBox.Show(config.IsBuildable.ToString());  
        }  
    }  
    catch(Exception ex)  
    {  
        MessageBox.Show(ex.Message);  
    }  
}  

Açıklamalar

Bir proje veya öğenin oluşturulması gerekip gerekmediğini belirtmek için, SolutionContext belirli bir çözüm yapılandırması için bağlamı ve yapıları olan yapılandırma olarak bir olarak belirtin.

Şunlara uygulanır