Cake.Tool 2.2.0 The ID prefix of this package has been reserved for one of the owners of this package by Prefix Reserved

.NET 5.0 .NET Core 3.1
dotnet tool install --global Cake.Tool --version 2.2.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local Cake.Tool --version 2.2.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Cake.Tool&version=2.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Cake.Tool --version 2.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.


Cake (C# Make) is a build automation system with a C# DSL to do things like compiling code, copy files/folders, running unit tests, compress files and build NuGet packages.

Table of Contents

  1. Documentation
  2. Contributing
  3. Get in touch
  4. License


You can read the latest documentation at

For a simple example to get started see Setting up a new project.


So you’re thinking about contributing to Cake? Great! It’s really appreciated.

Make sure you've read the contribution guidelines before sending that epic pull request. You'll also need to sign the contribution license agreement (CLA) for anything other than a trivial change. NOTE: The .NET Foundation CLA Bot will provide a link to this CLA within the PR that you submit if it is deemed as required.

  • Fork the repository.
  • Create a branch to work in.
  • Make your feature addition or bug fix.
  • Don't forget the unit tests.
  • Send a pull request.

Get in touch

Follow @cakebuildnet

Join the chat at


Copyright © .NET Foundation, Patrik Svensson, Mattias Karlsson, Gary Ewan Park, Alistair Chapman, Martin Björkström, Dave Glick, Pascal Berger, Jérémie Desautels, Enrico Campidoglio, C. Augusto Proiete, Nils Andresen, and contributors.

Cake is provided as-is under the MIT license. For more information see LICENSE.


A big thank you has to go to JetBrains who provide each of the Cake Developers with an Open Source License for ReSharper that helps with the development of Cake.


Our wonderful sponsors:



Our wonderful backers:


Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct.

Contribution License Agreement

By signing the CLA, the community is free to use your contribution to .NET Foundation projects.

.NET Foundation

This project is supported by the .NET Foundation.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp3.1
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
2.2.0 1,612,676 4/14/2022
2.1.0 1,708,416 2/20/2022
2.0.0 1,484,281 11/30/2021
2.0.0-rc0002 6,381 11/27/2021
2.0.0-rc0001 20,920 11/7/2021
1.3.0 1,439,570 10/7/2021
1.2.0 1,166,902 8/29/2021
1.1.0 1,732,585 3/6/2021
1.0.0 1,214,626 2/7/2021
1.0.0-rc0003 21,866 1/29/2021
1.0.0-rc0002 111,763 12/20/2020
1.0.0-rc0001 93,387 11/5/2020
0.38.5 1,283,922 9/20/2020
0.38.4 1,045,779 6/26/2020
0.38.3 171,048 6/26/2020
0.38.2 94,384 6/9/2020
0.38.1 88,878 5/30/2020
0.38.0 11,700 5/30/2020
0.37.0 1,227,233 2/1/2020
0.36.0 668,681 1/11/2020
0.35.0 918,208 9/28/2019
0.34.1 747,186 7/17/2019
0.34.0 74,312 7/16/2019
0.33.0 590,817 4/1/2019
0.32.1 430,322 1/4/2019
0.32.0 72,277 1/4/2019
0.31.0 403,191 12/13/2018
0.30.0 120,990 8/22/2018

3821 PostAction is not setable on DotNetSettings.
3485 Add alias for dotnet workload search command.
2099 Cache compiled script on disk.
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.
3819 Update Git Release Manager Comment template to remove Cake NuGet package and Chocolatey portable.
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.