Defining Tasks

Cake script runner

To define a task in a script for Cake .NET Tool, Cake runner for .NET Framework or Cake runner for .NET Core, use the Task method:

Task("A")
    .Does(() =>
{
});

Cake Frosting

To define a task in Cake.Frosting create a class inheriting from FrostingTask:

[TaskName("A")]
public class TaskA : FrostingTask
{
}