FileSetAliases Class

Summary

Contains functionality for creating filesets based on includes and excludes.
Assembly
Cake.FileSet.dll
Namespace
Cake.FileSet
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["FileSetAliases"] class Type type-node

Syntax

public static class FileSetAliases

Remarks

The Microsoft globbing library supports the following two wildcard characters; `*` and `**` (See https://docs.microsoft.com/en-us/aspnet/core/fundamentals/file-providers#globbing-patterns for more information). * - Matches anything at the current folder level, or any filename, or any file extension.Matches are terminated by / and . characters in the file path. ** - Matches anything across multiple directory levels.Can be used to recursively match many files within a directory hierarchy. Globbing pattern examples: directory/file.txt - Matches a specific file in a specific directory. directory/*.txt - Matches all files with .txt extension in a specific directory. directory/*/bower.json - Matches all bower.json files in directories exactly one level below the directory directory. directory/**/*.txt - Matches all files with .txt extension found anywhere under the directory directory.

Attributes

Type Description
CakeAliasCategoryAttribute

Methods

Name Value Summary
GetFileSet(ICakeContext, FileSetSettings) List<FilePath>
Gets a fileset by FileSetSettings
static
GetFileSet(ICakeContext, IEnumerable<string>, bool, DirectoryPath) List<FilePath>
Gets a fileset by patterns
static
GetFileSet(ICakeContext, IEnumerable<string>, IEnumerable<string>, bool, DirectoryPath) List<FilePath>
Gets a fileset by includes and excludes
static
GetFileSet(ICakeContext, string, IEnumerable<string>, bool, DirectoryPath) List<FilePath>
Gets a fileset by single include and excludes
static

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin