This documentation is archived and is not being maintained.

ShowEnvironmentInBuildLog Property

Visual Studio .NET 2003

Sets or returns whether or not to echo all environment variables into the build log during builds of Visual C++ projects.

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


true if all environment variables are echoed into the build log, false if not.

Return Value

true if all environment variables are echoed into the build log, false if not.


The following sample code shows the value of the ShowEnvironmentInBuildLog 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("Show Env. in build log? " & _
    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