This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see
Cake.Path.
Summary
Adds a value to the path.
Syntax
public static void AddToPath(this ICakeContext context, DirectoryPath value, PathSettings pathSettings)
Examples
Task("AddToPath")
.Does(() =>
{
var settings = new PathSettings {
Target = PathTarget.User // Target is only available in net45
}
AddToPath("C:\\Python27\\", settings);
});
Attributes
| Type |
Description |
| CakeMethodAliasAttribute |
|
Parameters
| Name |
Type |
Description |
| context |
ICakeContext |
The context. |
| value |
DirectoryPath |
Item to add. |
| pathSettings |
PathSettings |
Settings for the PATH. |
Return Value