Blog

Cake.Sdk 5.0.25225.53-beta released

Published
Wednesday, 13 August 2025
Category
Announcement
Author
devlead

A new preview version of Cake.Sdk has been released! Version 5.0.25225.53-beta brings compatibility with .NET 10 Preview 7. 🚀 🍰

What's new in this release

  • Compiled with/against .NET 10 Preview 7 - Full compatibility with the latest .NET 10 preview
  • Updated dependencies - All underlying packages updated to their latest versions
  • Fixes for new analyzer warnings - Resolved potential compatibility issues with Preview 7 SDK

SDK Versioning in File-based Apps

One notable improvement addresses the issue mentioned in our previous announcement. The .NET 10 Preview 7 SDK now properly supports SDK versioning in file-based applications, allowing you to specify the Cake.Sdk version directly in your .cs files:

#:sdk Cake.Sdk@5.0.25225.53-beta

Information("Hello");

Getting Started

To try out the latest preview, update your global.json file:

{
  "sdk": {
    "version": "10.0.100-preview.7.25358.103"
  },
  "msbuild-sdks": {
    "Cake.Sdk": "5.0.25225.53-beta"
  }
}

Or install the latest template package:

dotnet new install Cake.Template@5.0.25225.53-beta

Create a global.json file to pin versions:

dotnet new cakeglobaljson

Then create a new Cake file-based project:

dotnet new cakefile --name cake

And run it with:

dotnet cake.cs

PLEASE NOTE: this sample cake.cs file assumes that you have a file called 'example.sln' located in a folder called src. If you don't have such a solution file, you can create it like so:

dotnet new cakefile --name cake --IncludeExampleProject true --force

Feedback Welcome

This is still a preview release, and we'd love your feedback! You can:

We're excited to see what you build with the latest Cake.Sdk! 🍰


dotnet cake.cs - preview

Published
Thursday, 17 July 2025
Category
Announcement
Author
devlead

We're excited to announce the preview of Cake.Sdk, a new way to get the Cake tool scripting experience in regular .NET console applications! This brings you the stellar experience of the new "dotnet run app.cs" feature (requires .NET 10), while also working seamlessly with .NET 8 and 9 for regular csproj projects. 🚀 🍰

Here's the minimal example:

After weeks of internal testing and development, we're now expanding the beta for public feedback and contribution. While this is still in early stages, we want to gather early feedback from the community and plan to be ready when .NET 10 launches in November.

Read more...

Cake v5.0.0 released

Published
Tuesday, 12 November 2024
Category
Release Notes
Author
devlead

Version 5.0.0 of Cake has been released. Take it for a spin and give us feedback on our discussion board.

This release includes new features, improvements and bug fixes to both Cake Scripting and Cake Frosting since the Cake v4.2.0 release! 🚀 🍰

Cake now fully supports running on .NET 9, and with this C# 13, which means you can take advantage of the latest framework, runtime, and language improvements.

Cake itself will no longer run on .NET 6 or .NET 7, but Cake will continue to support the building of .NET Framework projects, as well as projects targeting .NET 7.0 or older.

The supported platform matrix for Cake 5.0.0 will look like this:

The FreeBSD operating system should now be recognized as Environment.Platform.Family PlatformFamily.FreeBSD, and new bool IsRunningOnFreeBSD alias and bool IsUnix alias will now be true for FreeBSD.

We've now set the recommended version of Cake.Core for addins to target to 5.0.0.

This won't break the build, but you might see warnings like the one below when addins or modules are loaded.

The recommended target framework monikers for addins are now:

We are thrilled to announce that Cake.Tool has reached an incredible milestone of 100 million downloads on NuGet.org! This accomplishment wouldn't have been possible without the contributions of over 300 individuals and the unwavering support of our users. Join us as we reflect on the journey of Cake, featuring 129 releases and over 300 third-party community add-ins.

This release was made possible thanks to the Cake team and the contribution of these awesome members of the Cake community listed below:

Full details of everything that was included in this release can be seen below.

Read more...

Cake v4.1.0 released

Published
Wednesday, 23 October 2024
Category
Release Notes
Author
devlead

Version 4.1.0 of Cake has been released. Take it for a spin and give us feedback on our discussion board.

This release includes new features, improvements and bug fixes to both Cake Scripting and Cake Frosting since the Cake v4.0.0 release! 🚀 🍰

This release was made possible thanks to the Cake team and the contribution of these awesome members of the Cake community listed below:

Full details of everything that was included in this release can be seen below.

Read more...

Cake v4.2.0 released

Published
Wednesday, 23 October 2024
Category
Release Notes
Author
devlead

Version 4.2.0 of Cake has been released. Take it for a spin and give us feedback on our discussion board.

This release includes a bug fix for Cake Frosting since the Cake v4.1.0 release! 🚀 🍰

This release was made possible thanks to the Cake team and the contribution of these awesome members of the Cake community listed below:

Full details of everything that was included in this release can be seen below.

Read more...