VCLinkerTool.AddModuleNamesToAssembly-Eigenschaft

Ruft die angegebene Nicht-Assemblydatei in der abschließenden Ausgabe ab oder legt diese fest.

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

Syntax

'Declaration
Property AddModuleNamesToAssembly As String
string AddModuleNamesToAssembly { get; set; }
property String^ AddModuleNamesToAssembly {
    String^ get ();
    void set (String^ value);
}
abstract AddModuleNamesToAssembly : string with get, set
function get AddModuleNamesToAssembly () : String 
function set AddModuleNamesToAssembly (value : String)

Eigenschaftswert

Typ: String
Die angegebene Nicht-Assemblydatei.

Hinweise

AddModuleNamesToAssembly macht die Funktionalität der Linkeroptionen /ASSEMBLYMODULE (MSIL-Modul zur Assembly hinzufügen) verfügbar.

Siehe Gewusst wie: Kompilieren von Beispielcode für die Erweiterbarkeit von Projektmodellen zu Informationen darüber, wie dieses Beispiel kompiliert und ausgeführt wird.

Beispiele

Im folgenden Beispiel wird die Eigenschaft AddModuleNamesToAssembly in der integrierten Entwicklungsumgebung (IDE):

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
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")
    tool.AddModuleNamesToAssembly = "c:\some.dll"
  End Sub
End Module

.NET Framework-Sicherheit

Siehe auch

Referenz

VCLinkerTool Schnittstelle

Microsoft.VisualStudio.VCProjectEngine-Namespace