VCLinkerTool.IgnoreImportLibrary, propriété

Obtient ou définit une valeur indiquant si la bibliothèque d'importation générée par cette configuration doit être importée dans des projets dépendants, ou pas.

Espace de noms :  Microsoft.VisualStudio.VCProjectEngine
Assembly :  Microsoft.VisualStudio.VCProjectEngine (dans Microsoft.VisualStudio.VCProjectEngine.dll)

Syntaxe

'Déclaration
Property IgnoreImportLibrary As Boolean
bool IgnoreImportLibrary { get; set; }
property bool IgnoreImportLibrary {
    bool get ();
    void set (bool value);
}
abstract IgnoreImportLibrary : bool with get, set
function get IgnoreImportLibrary () : boolean
function set IgnoreImportLibrary (value : boolean)

Valeur de propriété

Type : System.Boolean
true si les bibliothèques d'importation générées sont ignorées ; sinon, false.

Notes

Consultez Pages de propriétés de l'Éditeur de liens pour plus d'informations.

Consultez Comment : compiler l'exemple de code pour l'extensibilité du modèle de projet pour plus d'informations sur la façon de compiler et exécuter cet exemple.

Exemples

l'exemple suivant modifie la propriété d' IgnoreImportLibrary dans l'environnement de développement intégré (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.IgnoreImportLibrary = True
  End Sub
End Module

Sécurité .NET Framework

Voir aussi

Référence

VCLinkerTool Interface

Microsoft.VisualStudio.VCProjectEngine, espace de noms