Partilhar via


Propriedade VCCLCompilerTool.ExpandAttributedSource

Obtém ou define um valor indicando se criar um arquivo de listagem com os atributos expandidos injetado no arquivo de origem. ExpandAttributedSource expõe a funcionalidade padrão de /Fx (mesclar código injetado) do compilador.

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

Sintaxe

'Declaração
Property ExpandAttributedSource As Boolean
bool ExpandAttributedSource { get; set; }
property bool ExpandAttributedSource {
    bool get ();
    void set (bool value);
}
abstract ExpandAttributedSource : bool with get, set
function get ExpandAttributedSource () : boolean 
function set ExpandAttributedSource (value : boolean)

Valor de propriedade

Tipo: Boolean
true para criar um arquivo de listagem com os atributos expandidos injetado no arquivo de origem; caso contrário, false.

Exemplos

Consulte Como compilar um código de exemplo para extensibilidade do modelo de projeto para obter informações sobre como criar e executar esse exemplo.

O exemplo a seguir altera a propriedade de ExpandAttributedSource no ambiente de desenvolvimento integrado (IDE):

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim cfgs, tools As IVCCollection
        Dim cfg As VCConfiguration
        Dim tool As VCCLCompilerTool
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.Tools("VCCLCompilerTool")
        tool.ExpandAttributedSource = True
    End Sub
End Module

Segurança do .NET Framework

Consulte também

Referência

VCCLCompilerTool Interface

Namespace Microsoft.VisualStudio.VCProjectEngine