VCCLCompilerTool.RuntimeLibrary, propriété

Obtient ou définit la bibliothèque Runtime pour lier.RuntimeLibrary expose la fonctionnalité des options de /MD, /MT, /LD (Utiliser la bibliothèque Runtime) du compilateur.

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

Syntaxe

'Déclaration
Property RuntimeLibrary As runtimeLibraryOption
runtimeLibraryOption RuntimeLibrary { get; set; }
property runtimeLibraryOption RuntimeLibrary {
    runtimeLibraryOption get ();
    void set (runtimeLibraryOption value);
}
abstract RuntimeLibrary : runtimeLibraryOption with get, set
function get RuntimeLibrary () : runtimeLibraryOption
function set RuntimeLibrary (value : runtimeLibraryOption)

Valeur de propriété

Type : Microsoft.VisualStudio.VCProjectEngine.runtimeLibraryOption
Valeur runtimeLibraryOption.

Exemples

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

L'exemple suivant modifie la propriété d'RuntimeLibrary dans (IDE) l'environnement de développement intégré :

' 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 VCCLCompilerTool
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.Tools("VCCLCompilerTool")
        tool.RuntimeLibrary = runtimeLibraryOption.rtSingleThreadedDebug
    End Sub
End Module

Sécurité .NET Framework

Voir aussi

Référence

VCCLCompilerTool Interface

Microsoft.VisualStudio.VCProjectEngine, espace de noms