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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.VisualStudio.VCProjectEngine 命名空间