VCLinkerTool.IgnoreAllDefaultLibraries-Eigenschaft

Ruft einen Wert ab, der angibt, ob der Linker oder Bibliothekar alle Standardbibliotheken ignorieren soll, oder legt diesen fest.

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

Syntax

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

Eigenschaftswert

Typ: System.Boolean
true , wenn der Linker oder Bibliothekar alle Standardbibliotheken ignorieren soll, andernfalls false.

Hinweise

IgnoreAllDefaultLibraries macht die Funktionen der /NODEFAULTLIB (Bibliotheken ignorieren) Linkeroption und der Option Verwalten einer Bibliothek LIB verfügbar.

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

Beispiele

Im folgenden Beispiel ändert die IgnoreAllDefaultLibraries Linkereigenschaft 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.IgnoreAllDefaultLibraries = True
    End Sub
End Module

.NET Framework-Sicherheit

Siehe auch

Referenz

VCLinkerTool Schnittstelle

Microsoft.VisualStudio.VCProjectEngine-Namespace