This documentation is archived and is not being maintained.

BuildLogging Property

Visual Studio .NET 2003

Specifies whether a log file will be created and populated with information about build activity.

[Visual Basic .NET]
Public Property BuildLogging() As Boolean
[Visual Basic 6]
Property Get BuildLogging() As Boolean
Property Let BuildLogging( _
   ByVal NewValue As Boolean _
) 
[C++]
HRESULT __stdcall get_BuildLogging(
   /* [out, retval] */ VARIANT_BOOL* retVal
);
HRESULT __stdcall put_BuildLogging(
   /* [in] */ VARIANT_BOOL NewValue
);
[C#]
public bool BuildLogging {get; set;}
[JScript .NET]
public function get BuildLogging() : Boolean
public function set BuildLogging(
   NewValue : Boolean
)

Remarks

The BuildLogging property is on by default.

This property exposes functionality available from the VC++ Build property page.

Example

The following sample code modifies the BuildLogging property in the development environment:

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim cfgs As IVCCollection
        Dim cfg As VCConfiguration
        Dim ProjEng As VCProjectEngine
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        ProjEng = cfgs.VCProjectEngine
        MsgBox(ProjEng.BuildLogging)
        ProjEng.BuildLogging = False
        MsgBox(ProjEng.BuildLogging)
    End Sub
End Module

See Samples for Project Model Extensibility for information on how to compile and run this sample.

See Also

Applies To: VCProjectEngine Object

Show: