Cake Frosting

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

Requirements

Cake.Frosting is a .NET host which allows you to write your build scripts as a console application (netcoreapp3.1 or net461).

Usage

dotnet Cake.Frosting.dll [switches]

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> Sets the verbosity. 0.30.0
--dryrun Performs a dry run. 0.30.0
--version Displays Cake.Frosting version number. 0.30.0
--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 https://dotnet.microsoft.com/download

Setup

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 build script and bootstrapping scripts.

Running build script

Run the build script:

./build.ps1

build.sh

build.sh

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.