Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
AdditionalManifestDependencies Property
Collapse the table of content
Expand the table of content

VCLinkerTool.AdditionalManifestDependencies Property

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

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

function get AdditionalManifestDependencies () : String 
function set AdditionalManifestDependencies (value : String)

Property Value

Type: String
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)
        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

Show:
© 2015 Microsoft