Partilhar via


Propriedade VCLinkerTool.AdditionalManifestDependencies

Obtém ou define os fragmentos adicionais de manifesto XML que o vinculador adicionará o arquivo de manifesto.

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

Sintaxe

'Declaração
Property AdditionalManifestDependencies As String
string AdditionalManifestDependencies { get; set; }
property String^ AdditionalManifestDependencies {
    String^ get ();
    void set (String^ value);
}
abstract AdditionalManifestDependencies : string with get, set
function get AdditionalManifestDependencies () : String
function set AdditionalManifestDependencies (value : String)

Valor de propriedade

Tipo: System.String
Uma cadeia de caracteres que representa os nomes dos manifestos.

Exemplos

O exemplo a seguir altera a propriedade de AdditionalManifestDependencies de vinculador no integrated development environment (IDE):

' Macro code.
' Before running, load a Visual C++ project.
Imports EnvDTE
Imports EnvDTE80
Imports System.Diagnostics
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 VCLinkerTool

        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.Tools("VCLinkerTool")
        MsgBox("Additional Lib Directory: " & _
        tool.AdditionalManifestDependencies)
        tool.AdditionalManifestDependencies = "type='Win32' name='Test.Research.SampleAssembly' version='6.0.0.0' processorArchitecture='X86' publicKeyToken='0000000000000000' language='*'\"
        MsgBox("Additional Lib Directory: " & _
        tool.AdditionalManifestDependencies)
    End Sub
End Module

Segurança do .NET Framework

Consulte também

Referência

VCLinkerTool Interface

Namespace Microsoft.VisualStudio.VCProjectEngine

Outros recursos

/ MANIFESTO (criar o manifesto do Assembly lado a lado)

/ MANIFESTDEPENDENCY (Especifica o manifesto dependências)

/ MANIFESTFILE (arquivo de manifesto do nome)