VCCLCompilerTool.CompileOnly Eigenschaft

Definition

Ruft einen Wert ab, der angibt, ob die Kompilierung ohne Verknüpfen erfolgen soll, oder legt diesen fest.

public:
 property bool CompileOnly { bool get(); void set(bool value); };
public:
 property bool CompileOnly { bool get(); void set(bool value); };
[System.Runtime.InteropServices.DispId(18)]
public bool CompileOnly { [System.Runtime.InteropServices.DispId(18)] get; [System.Runtime.InteropServices.DispId(18)] set; }
[<System.Runtime.InteropServices.DispId(18)>]
[<get: System.Runtime.InteropServices.DispId(18)>]
[<set: System.Runtime.InteropServices.DispId(18)>]
member this.CompileOnly : bool with get, set
Public Property CompileOnly As Boolean

Eigenschaftswert

Boolean

true, um ohne Verknüpfen zu kompilieren, andernfalls false.

Attribute

Beispiele

Weitere Informationen zum Kompilieren und Ausführen dieses Beispiels finden Sie unter Gewusst wie: Kompilieren von Beispiel Code für die Erweiterbarkeit von Projekt Modellen .

Im folgenden Beispiel wird die- CompileOnly Eigenschaft in der integrierten Entwicklungsumgebung (Integrated Development Environment, IDE) geändert:

' 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.CompileOnly = False  
    End Sub  
End Module  

Gilt für