TaskEnvironment Class

Definition

Provides an IMultiThreadableTask with access to a run-time execution environment including environment variables, file paths, and process management capabilities.

public ref class TaskEnvironment sealed
public sealed class TaskEnvironment
type TaskEnvironment = class
Public NotInheritable Class TaskEnvironment
Inheritance
TaskEnvironment

Properties

Name Description
Fallback

Gets the fallback task environment that directly accesses the system environment variables and working directory of the current process.

ProjectDirectory

Gets or sets the project directory for the task execution.

Methods

Name Description
CreateWithProjectDirectoryAndEnvironment(String, IDictionary<String,String>)

Creates a new TaskEnvironment with isolated working directory and environment variables.

GetAbsolutePath(String)

Converts a relative or absolute path string to an absolute path. This function resolves paths relative to ProjectDirectory.

GetEnvironmentVariable(String)

Gets the value of an environment variable.

GetEnvironmentVariables()

Gets a dictionary containing all environment variables.

GetProcessStartInfo()

Creates a new ProcessStartInfo configured for the current task execution environment.

SetEnvironmentVariable(String, String)

Sets the value of an environment variable.

Applies to