BuildParameters.SaveOperatingEnvironment Property

 

Gets or sets a switch specifying if the operating environment, such as the current directory and environment, should be saved and restored between project builds and task invocations.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:   Microsoft.Build.Execution
Assembly:  Microsoft.Build (in Microsoft.Build.dll)

public bool SaveOperatingEnvironment { get; set; }

Property Value

Type: System.Boolean

Returns a switch indicating whether the operating environment should be saved and restored between project builds and task invocations; true if the environment should be saved, false otherwise.

This should be set to false for any other build managers running in the system so that we do not have two build managers trampling on each others environment.

Return to top
Show: