PathAliases.

RemoveFromPath(ICakeContext, DirectoryPath, PathSettings) Method

Summary

Removes a value from the path.
Assembly
Cake.Path.dll
Namespace
Cake.Path
Containing Type
PathAliases

Syntax

public static void RemoveFromPath(this ICakeContext context, DirectoryPath value, PathSettings pathSettings)

Examples

 Task("RemoveFromPath")
   .Does(() => 
   {
      var settings = new PathSettings {
         Target = PathTarget.User // Target is only available in net45
      }

      RemoveFromPath("C:\\Python27\\", settings);
   });

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
value DirectoryPath Item to remove.
pathSettings PathSettings Settings for the PATH.

Return Value

Type Description
void