Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ToolTask.EnvironmentVariables Property

Definition

Namespace:
Microsoft.Build.Utilities
Assembly:
Microsoft.Build.Utilities.Core.dll
Assembly:
Microsoft.Build.Utilities.v4.0.dll
Package:
Microsoft.Build.Utilities.Core v15.9.20
Package:
Microsoft.Build.Utilities.Core v16.11.0
Package:
Microsoft.Build.Utilities.Core v17.14.8
Package:
Microsoft.Build.Utilities.Core v18.3.3
Package:
Microsoft.Build.Utilities.Core v18.4.0
Source:
ToolTask.cs
Source:
ToolTask.cs
Source:
ToolTask.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Array of equals-separated pairs of environment variables that should be passed to the spawned executable, in addition to (or selectively overriding) the regular environment block.

public:
 property cli::array <System::String ^> ^ EnvironmentVariables { cli::array <System::String ^> ^ get(); void set(cli::array <System::String ^> ^ value); };
public string[] EnvironmentVariables { get; set; }
public string[] EnvironmentVariables { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] set; }
member this.EnvironmentVariables : string[] with get, set
[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
[<set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.EnvironmentVariables : string[] with get, set
Public Property EnvironmentVariables As String()

Property Value

String[]
Attributes

Remarks

Using this instead of EnvironmentOverride as that takes a Dictionary, which cannot be set from an MSBuild project.

Applies to