PathAliases.

GetEnvironmentPath(ICakeContext) Method

Summary

Gets the environment's path.
Assembly
Cake.Path.dll
Namespace
Cake.Path
Containing Type
PathAliases

Syntax

public static string GetEnvironmentPath(this ICakeContext context)

Examples

Task("GetEnvironmentPath")
  .Does(() => 
  {
     string path = GetEnvironmentPath();
  });

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.

Return Value

Type Description
string Returns a string containing the path