FileSetAliases.

GetFileSet(ICakeContext, FileSetSettings) Method

Summary

Gets a fileset by FileSetSettings
Assembly
Cake.FileSet.dll
Namespace
Cake.FileSet
Containing Type
FileSetAliases

Syntax

public static List<FilePath> GetFileSet(this ICakeContext context, FileSetSettings settings)

Examples

 Task("GetFileSet.BySettings")
   .Does(() => 
   {
      var settings = new FileSetSettings {
         Includes = new string[] { "/src/**/*.csproj" },
         Excludes = new string[] { "/src/**/*.Test.csproj" },
         BasePath = "D:\code\git\Cake.FileSet",
         CaseSensitive = true
      };

      GetFileSet(settings);
   });

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
settings FileSetSettings Settings for fileset.

Return Value

Type Description
List<FilePath>