Skip to content

Add support for getting the user's home directory in the Cake Environment #4092

@augustoproiete

Description

@augustoproiete

The Cake Environment currently supports getting the WorkingDirectory as well as the ApplicationRoot, but doesn't support getting the user's home directory.

Proposed API:

public interface ICakeEnvironment
{
    /// <summary>
    /// Gets the user's home directory.
    /// </summary>
    /// <value>The user's home directory.</value>
    DirectoryPath UserHomeDirectory { get; }

    // ...
}

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions