ToolSettingsExtensions.

WithEnvironmentVariable<T>(T, string, string) Method

Summary

Sets or adds tool environment variable.
Namespace
Cake.Core.Tooling
Containing Type
ToolSettingsExtensions

Syntax

public static T WithEnvironmentVariable<T>(this T toolSettings, string key, string value) 
    where T : ToolSettings

Type Parameters

Name Description
T The ToolSettings type.

Parameters

Name Type Description
toolSettings T The tools settings.
key string The tool environment variable key.
value string The tool environment variable value.

Return Value

Type Description
T The tools settings.