Summary
Expands all environment variables in the provided
FilePath
.
- Namespace
- Cake
.Core .IO - Containing Type
- PathExtensions
Syntax
public static FilePath ExpandEnvironmentVariables(this FilePath path, ICakeEnvironment environment)
Examples
var path = new FilePath("%APPDATA%/foo.bar");
var expanded = path.ExpandEnvironmentVariables(environment);
Parameters
Name | Type | Description |
---|---|---|
path | FilePath | The file path to expand. |
environment | ICakeEnvironment | The environment. |