PathAliases.

AddToPath(ICakeContext, DirectoryPath, PathSettings) Method

Summary

Adds a value to the path.
Assembly
Cake.Path.dll
Namespace
Cake.Path
Containing Type
PathAliases

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

Type Description
void