Cake Frosting

Cake Frosting is a .NET host which allows you to write your build scripts as a console application.

A console application has the advantage of full IDE support, like IntelliSense, refactoring and debugging.

See Setting Up A New Frosting Project tutorial for how to get started with Cake Frosting.


Cake.Frosting can be used to write console applications targeting netcoreapp3.1 or net461.


dotnet Cake.Frosting.dll [switches]


Switch Description Available Since
--target <target> Sets the build target. 0.30.0
--working <dir> Sets the working directory. 0.30.0
--verbosity <value> Specifies the amount of information to be displayed (quiet, minimal, normal, verbose, diagnostic). 0.30.0
--descriptions Shows description about tasks. 1.0.0-rc0002
--tree Shows the task dependency tree 1.0.0-rc0002
--dryrun Performs a dry run. 0.30.0
--exclusive Execute a single task without any dependencies. 1.0.0-rc0002
--version Displays Cake.Frosting version number. 0.30.0
--info Displays additional information about Cake execution. 1.0.0-rc0002
--help Prints help information. 0.30.0

Custom switches

All switches not recognized by Cake will be added to an argument list that is passed to the build script. See Arguments And Environment Variables how to read arguments in your script.

Bootstrapping for Cake Frosting

When creating a new Cake Frosting project from the template default bootstrapping scripts for Windows, macOS and Linux are created.

The following instructions require .NET Core 3.1.301 or newer. You can find the SDK at


To create a new Cake Frosting project you need to install the Frosting template:

dotnet new --install Cake.Frosting.Template

Create a new Frosting project:

dotnet new cakefrosting

This will create the Cake Frosting project and bootstrapping scripts.

Running build script

Run the build script:


Using pre-release versions

Cake uses Azure Artifacts as a NuGet feed for testing and pre-release builds. With these pre-release builds the next version of Cake can be accessed and utilized for getting the latest features or testing addins or build scripts to know if the next release will be safe when you need to upgrade.