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
dotnet Cake.Frosting.dll [switches]
|--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|
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
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.