Freigeben über


VCLinkerTool.ResourceOnlyDLL-Eigenschaft

Erstellt eine DLL ohne Einstiegspunkt. Durch Festlegen auf true wird eine reine Ressourcen-DLL erstellt.

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

Syntax

'Declaration
Property ResourceOnlyDLL As Boolean
bool ResourceOnlyDLL { get; set; }
property bool ResourceOnlyDLL {
    bool get ();
    void set (bool value);
}
abstract ResourceOnlyDLL : bool with get, set
function get ResourceOnlyDLL () : boolean 
function set ResourceOnlyDLL (value : boolean)

Eigenschaftswert

Typ: Boolean
true, wenn eine reine Ressourcen-DLL erstellt werden soll, andernfalls false.

Hinweise

ResourceOnlyDLL macht die Funktionalität der Linkeroptionen /NOENTRY (Kein Einstiegspunkt) 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 ResourceOnlyDLL 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.ResourceOnlyDLL = True
  End Sub
End Module

.NET Framework-Sicherheit

Siehe auch

Referenz

VCLinkerTool Schnittstelle

Microsoft.VisualStudio.VCProjectEngine-Namespace