Cake (C# Make) runs build scripts written in C# to compile, test, package, and deploy .NET and related projects.
Overview
Cake is a build automation system that uses a C# domain-specific language for tasks such as compiling code, copying files, running unit tests, compressing artifacts, and creating NuGet packages. You express pipelines as scripts or console apps rather than XML-only build files.
It builds on the Roslyn compiler, so scripts are pure C#. You can run Cake as a single-file app with Cake.Sdk, as a standard console project with Cake Frosting, or as a script via the Cake .NET Tool. IDE extensions add editing support on common editors.
Cake runs on modern .NET on Windows, Linux, and macOS. The same scripts are intended to behave the same on a developer machine and on CI systems such as Azure Pipelines, GitHub Actions, TeamCity, or Jenkins.
Built-in tasks cover common tools including MSBuild, the .NET CLI, MSTest, xUnit, NUnit, NuGet, ILMerge, WiX, and SignTool, with many more available through addins and modules.
Key features
- C# DSL build scripts
- Roslyn-based script compilation
- MSBuild and .NET CLI tasks
- xUnit, NUnit, and MSTest runners
- NuGet package creation
- Cross-platform Windows, Linux, macOS
- CI server integrations
- Addins for extended tools
Use cases
- .NET project build orchestration
- Repeatable CI build scripts
- Test and package automation
- Local dev build tasks