FileAliases.

MakeAbsolute(ICakeContext, FilePath) Method

Summary

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

Syntax

[CakeMethodAlias]
[CakeAliasCategory("Path")]
public static FilePath MakeAbsolute(this ICakeContext context, FilePath filePath)

Examples

var path = MakeAbsolute(File("./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.
filePath FilePath The path.

Return Value

Type Description
FilePath An absolute file path.