This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.FileSet.
Summary
Gets a fileset by FileSetSettings
- Assembly
- Cake
.FileSet .dll - Namespace
- Cake
.FileSet - Containing Type
- FileSet
Syntax
public static IEnumerable<FilePath> Find(string basePath, IEnumerable<string> includes, IEnumerable<string> excludes = null, bool caseSensitive = false)
Examples
IEnumerable>FilePath< filePaths = FileSet.Find("D:\code\git\Cake.FileSet", new string[] { "/src/**/*.csproj" } , new string[] { "/src/**/*.Test.csproj" }, false);
Parameters
Name | Type | Description |
---|---|---|
basePath | string | Base directory to use for the fileset. The working directory is used if null. |
includes | IEnumerable |
Patterns to include. |
excludes | IEnumerable |
Patterns to exclude. |
caseSensitive | bool | Whether the pattern match is case senstive. Defaults to false. |
Return Value
Type | Description |
---|---|
IEnumerable |
Returns an IEnumberable of FilePath that match the input patterns. |