The Modern .NET Show

From YAML Chaos to C# Clarity: Mattias Karlsson on Cake Build

Mar 6, 2026
Mattias Karlsson, open-source maintainer and .NET-focused developer advocate and consultant, walks through Cake, the C# build orchestration tool he maintains. He contrasts C# scripting with YAML for clearer, strongly typed pipelines. Hear about local debugging, cross-platform path handling, evolving pipelines, publishing scripts as tools, and running one script across many CI systems.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

Cake Orchestrates Tools Not Replaces Them

  • Cake is a build orchestration framework that orchestrates existing tools rather than replacing MSBuild or CI systems.
  • It lets you write build workflows in C# so orchestration complexity is reduced and the same flow runs cross-platform.
ADVICE

Debug Build Scripts Locally First

  • Debug your build scripts locally before pushing to CI to speed up iteration and catch issues with breakpoints and inspection.
  • Mattias stresses Cake runs the same locally and on CI so you can use Visual Studio debugging tools instead of blind YAML cycles.
INSIGHT

Strongly Typed Build APIs Prevent Errors

  • Cake provides strongly typed setting classes and aliases so you don't need to remember argument names or types for tools like dotnet CLI.
  • That typed API reduces human error compared with free-form YAML or shell scripts across platforms.
Get the Snipd Podcast app to discover more snips from this episode
Get the app