Share via

VCLinkerTool.AdditionalManifestDependencies Property


Gets or sets the additional XML manifest fragments that the linker will add to the manifest file.

 property System::String ^ AdditionalManifestDependencies { System::String ^ get(); void set(System::String ^ value); };
 property Platform::String ^ AdditionalManifestDependencies { Platform::String ^ get(); void set(Platform::String ^ value); };
public string AdditionalManifestDependencies { [System.Runtime.InteropServices.DispId(15)] get; [System.Runtime.InteropServices.DispId(15)] set; }
[<get: System.Runtime.InteropServices.DispId(15)>]
[<set: System.Runtime.InteropServices.DispId(15)>]
member this.AdditionalManifestDependencies : string with get, set
Public Property AdditionalManifestDependencies As String

Property Value

A string representing the names of the manifests.



The following example modifies the linker's AdditionalManifestDependencies property in the 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 = "type='Win32' name='Test.Research.SampleAssembly' version='' processorArchitecture='X86' publicKeyToken='0000000000000000' language='*'\"  
        MsgBox("Additional Lib Directory: " & _  
    End Sub  
End Module  

Applies to