ToolTask.EnvironmentVariables Property

Definition

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.

C#
public string[] EnvironmentVariables { get; set; }
C#
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; }

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

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1