Summary
Adds a description to the task.
Syntax
public static CakeTaskBuilder<TData> Description<TData>(this CakeTaskBuilder<TData> builder, string description)
where TData : class
Examples
TaskOf<Foo>("Hello")
.Description("Writes a greeting")
.Does((context, data) =>
{
context.Log.Information("Hello {0}", data.Place);
});
Type Parameters
| Name |
Description |
| TData |
The type of the data context. |
Parameters
| Name |
Type |
Description |
| builder |
CakeTaskBuilder<TData> |
The task builder. |
| description |
string |
The description. |
Return Value