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.

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; }

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