DirectoryAliases.

MakeAbsolute(ICakeContext, DirectoryPath) Method

Summary

Makes the path absolute (if relative) using the current working directory.
Namespace
Cake.Common.IO
Containing Type
DirectoryAliases

Syntax

[CakeMethodAlias]
[CakeAliasCategory("Path")]
public static DirectoryPath MakeAbsolute(this ICakeContext context, DirectoryPath path)

Examples

var path = MakeAbsolute(Directory("./resources"));

Attributes

Type Description
CakeMethodAliasAttribute An attribute used to mark script method aliases.
CakeAliasCategoryAttribute An attribute used for documentation of alias methods/properties.

Parameters

Name Type Description
context ICakeContext The context.
path DirectoryPath The path.

Return Value

Type Description
DirectoryPath An absolute directory path.