VCLinkerTool.AdditionalManifestDependencies 属性

获取或设置将由链接器添加到清单文件的附加 XML 清单片段。

命名空间:  Microsoft.VisualStudio.VCProjectEngine
程序集:  Microsoft.VisualStudio.VCProjectEngine(在 Microsoft.VisualStudio.VCProjectEngine.dll 中)

语法

声明
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)

属性值

类型:System.String
一个表示清单名的字符串。

示例

下面的示例在集成开发环境 (IDE) 中修改链接器的 AdditionalManifestDependencies 属性:

' 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

.NET Framework 安全性

请参见

参考

VCLinkerTool 接口

Microsoft.VisualStudio.VCProjectEngine 命名空间

其他资源

/MANIFEST(创建并行程序集清单)

/MANIFESTDEPENDENCY(指定清单依赖项)

/MANIFESTFILE(命名清单文件)