Summary
Sets or adds tool environment variable.
- Namespace
- Cake
.Core .Tooling - Containing Type
- Tool
Settings Extensions
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. |