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 includes and excludes
Syntax
public static List<FilePath> GetFileSet(this ICakeContext context, IEnumerable<string> includes, IEnumerable<string> excludes = null, bool caseSensitive = false, DirectoryPath basePath = null)
Examples
Task("GetFileSet.ByIncludes")
.Does(() =>
{
GetFileSet(
includes: new string[] { "/src/**/*.csproj" },
excludes: new string[] { "/src/**/*.Test.csproj" },
caseSensitive: false,
basePath: "D:\code\git\Cake.FileSet"
);
});
Attributes
Type |
Description |
CakeMethodAliasAttribute |
|
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The context. |
includes |
IEnumerable<string> |
Patterns to include. |
excludes |
IEnumerable<string> |
Patterns to exclude. Optional. |
caseSensitive |
bool |
Whether the pattern match is case senstive. Optional. Defaults to false. |
basePath |
DirectoryPath |
Base path to use for the fileset. Optional. The working directory is used if null. |
Return Value
Type |
Description |
List<FilePath> |
|