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)
屬性值
類型:String
表示資訊清單名稱的字串。
範例
下列範例會修改在整合式開發環境 (IDE) (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 命名空間