Summary
Registers a new task.
- Namespace
- Cake
.Core .Scripting - Containing Type
- IScriptHost
Syntax
CakeTaskBuilder Task(string name)
Examples
Task("Hello")
.Does(() =>
{
Information("Hello World");
});
Parameters
| Name | Type | Description |
|---|---|---|
| name | string | The name of the task. |
Return Value
| Type | Description |
|---|---|
| CakeTaskBuilder | A CakeTaskBuilder. |
