Summary
Allows registration of an action that's executed before each task is run.
If the task setup fails, its task will not be executed but the task teardown will be performed.
- Namespace
- Cake
.Core .Scripting - Containing Type
- IScriptHost
Syntax
void TaskSetup(Action<ITaskSetupContext> action)
Parameters
Name | Type | Description |
---|---|---|
action | Action |
The action to be executed. |
Return Value
Type | Description |
---|---|
void |