- 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:
- Try out the new version and report any issues on GitHub
- Join the discussion on our discussion board
- Contribute to the source code
We're excited to see what you build with the latest Cake.Sdk! 🍰