Cake v2.2.0 released

Cake Build
2 min readApr 16, 2022

--

Version 2.2.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 v2.1.0 release! 🚀 🍰

Highlights of this release

  • Opt-in script caching
  • New aliases for using dotnet workload search
  • Fixes in UNC and relative path collapsing
  • Improved handling of .NET runtime reference assemblies

Script caching

The new opt-in script compilation cache is probably the most anticipated feature in this release, it enables significantly faster subsequent executions of unchanged scripts.

This new behavior is off by default, but can be enabled using Cake Configuration.

You can also configure where scripts are cached, useful i.e. if you want to cache scripts across repositories on a build agent, by default a cache folder within the standard Tools Path will be used.

Contributors

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.

Issues

As part of this release we had 19 issues closed.

Feature

  • #3821 PostAction is not setable on DotNetSettings.
  • #3485 Add alias for dotnet workload search command.
  • #2099 Cache compiled script on disk.

Improvement

  • #3866 Update Microsoft.NETCore.Platforms to 6.0.3.
  • #3854 Update Spectre.Console to 0.44.0.
  • #3851 Update System.Reflection.Metadata to 6.0.1.
  • #3846 Update Microsoft.CodeAnalysis.CSharp.Scripting to 4.1.0.
  • #3844 Update Microsoft.NETCore.Platforms to 6.0.2.
  • #3843 Update NuGet.* to 6.1.0.
  • #2763 Provide property to return parent directory on DirectoryPath.
  • #2431 UploadFile should support option of username/password.

Documentation

Bug

  • #3859 PathCollapser.Collapse breaks UNC paths.
  • #3858 PathCollapser.Collapse shows wrong output for if .. is the second segment in the path.
  • #3823 Executing a cake script leads to System.IO.FileNotFoundException for several System.(…) assemblies.
  • #3735 Incorrect warnings in diagnostic logs.

Originally published at https://cakebuild.net.

--

--

Cake Build
Cake Build

Written by Cake Build

Cake (C# Make) is a build automation system

No responses yet