Summary
Expands all environment variables in the provided
FilePath
.
- Namespace
- Cake
.Common .IO - Containing Type
- FileAliases
Syntax
[CakeMethodAlias]
[CakeAliasCategory("Path")]
public static FilePath ExpandEnvironmentVariables(this ICakeContext context, FilePath filePath)
Examples
var path = new FilePath("%APPDATA%/foo.bar");
var expanded = path.ExpandEnvironmentVariables(environment);
Attributes
Type | Description |
---|---|
Cake |
An attribute used to mark script method aliases. |
Cake |
An attribute used for documentation of alias methods/properties. |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
filePath | FilePath | The path. |