VCLinkerTool.AdditionalManifestDependencies - свойство
Gets or sets the additional XML manifest fragments that the linker will add to the manifest file.
Пространство имен: Microsoft.VisualStudio.VCProjectEngine
Сборка: Microsoft.VisualStudio.VCProjectEngine (в Microsoft.VisualStudio.VCProjectEngine.dll)
Синтаксис
'Декларация
Property AdditionalManifestDependencies As String
'Применение
Dim instance As VCLinkerTool
Dim value As String
value = instance.AdditionalManifestDependencies
instance.AdditionalManifestDependencies = value
string AdditionalManifestDependencies { get; set; }
property String^ AdditionalManifestDependencies {
String^ get ();
void set (String^ value);
}
function get AdditionalManifestDependencies () : String
function set AdditionalManifestDependencies (value : String)
Значение свойства
Тип: System.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 = "c:\temp"
MsgBox("Additional Lib Directory: " & _
tool.AdditionalManifestDependencies)
End Sub
End Module
Разрешения
- Полное доверие для непосредственно вызывающего метода. Этот член не может быть использован частично доверенным кодом. Дополнительные сведения см. в разделе Using Libraries from Partially Trusted Code.
См. также
Основные понятия
/MANIFEST (Create Side-by-Side Assembly Manifest)
/MANIFESTDEPENDENCY (Specify Manifest Dependencies)
/MANIFESTFILE (Name Manifest File)