Condividi tramite


Proprietà VCLinkerTool.ResourceOnlyDLL

Crea una DLL senza punto di ingresso. Se impostato su True crea una DLL di sole risorse.

Spazio dei nomi:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

Sintassi

'Dichiarazione
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)

Valore proprietà

Tipo: Boolean
true se è necessario creare una DLL di sole risorse; in caso contrario, false.

Note

L'oggetto ResourceOnlyDLL espone la funzionalità dell'opzione del linker /NOENTRY (nessun punto di ingresso).

Vedere Procedura: compilare codice di esempio per l'Extensibility del modello di progetto per informazioni su come compilare ed eseguire l'esempio.

Esempi

Nell'esempio riportato di seguito la proprietà ResourceOnlyDLL nell'ambiente di sviluppo integrato (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

Sicurezza di .NET Framework

Vedere anche

Riferimenti

VCLinkerTool Interfaccia

Spazio dei nomi Microsoft.VisualStudio.VCProjectEngine