Environment

Summary

Contains functionality related to the environment.

Environment Variables

EnvironmentVariable(ICakeContext, string) Retrieves the value of the environment variable or null if the environment variable does not exist.
EnvironmentVariable<T>(ICakeContext, string) Retrieves the value of the environment variable or throws a CakeException if the argument is missing
Addin from Cake.Incubator.dll
EnvironmentVariable<T>(ICakeContext, string, T) Retrieves the value of the environment variable or returns the default value specified if missing
Addin from Cake.Incubator.dll
EnvironmentVariables(ICakeContext) Retrieves all environment variables
HasEnvironmentVariable(ICakeContext, string) Checks for the existence of a value for a given environment variable.

Platform

IsRunningOnUnix(ICakeContext) Determines whether the build script running on a Unix or Linux based system.
IsRunningOnWindows(ICakeContext) Determines whether the build script is running on Windows.