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.Watch.
Summary
Watch files in current directory.
Syntax
public static void Watch(this ICakeContext context, string pattern, Action<IEnumerable<FileChange>> fileChanged)
Examples
Watch("*.html", changes => {
changes.ToList().ForEach(change => {
Console.WriteLine(change.FullPath);
});
});
Attributes
Type |
Description |
CakeMethodAliasAttribute |
|
Parameters
Name |
Type |
Description |
context |
ICakeContext |
|
pattern |
string |
|
fileChanged |
Action<IEnumerable<FileChange>> |
|
Return Value