Cake (C# Make) build automation system
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Mattias Karlsson 408499f557
Merge branch 'fseegraeber-GH-2270' into develop
1 day ago
.github (GH-850) Added Issue and PR Templates 2 years ago
build (build) Update addins&tools,refactor bootstrappers 2 weeks ago
nuspec (GH-2358) Use new nuget license format 1 month ago
src (GH-2270) Added RedirectedStandardOutputHandler and RedirectedStandardErrorHandler. 1 day ago
tests/integration (build) Add provider to integration test setup 1 week ago
.editorconfig (maint) Added .cake file to EditorConfig 3 years ago
.gitattributes (GH-669) Added .gitattributes file 2 years ago
.gitignore (GH-2284) Version command display SemVer 4 months ago
.gitlab-ci.yml (build) Update addins&tools,refactor bootstrappers 2 weeks ago
.travis.yml (build) Update addins&tools,refactor bootstrappers 2 weeks ago Update 2 years ago Updated 2 years ago
GitReleaseManager.yaml Revert 26013c0665 1 year ago
GitVersion.yml (build) Update addins&tools,refactor bootstrappers 2 weeks ago
LICENSE Cake joins the .NET Foundation 2 years ago Updated Bitrise Build Status Badged 3 months ago (build) Updated version and release notes. 1 week ago
appveyor.yml (build) Update addins&tools,refactor bootstrappers 2 weeks ago
bitbucket-pipelines.yml (build) Update addins&tools,refactor bootstrappers 2 weeks ago
build.cake (build) Switch to GitReleaseManager Global Tool 1 week ago
build.config (build) Updated Cake tool to version 0.32.1 1 week ago
build.ps1 (build) Add null check for cake path 1 week ago (build) Add uninstall previous Cake version 1 week ago
global.json (build) Update addins&tools,refactor bootstrappers 2 weeks ago
signclient.filter Move to signing service v2 1 year ago
signclient.json Move to signing service v2 1 year ago

# Cake

NuGet MyGet Chocolatey homebrew Help Contribute to Open Source

Source Browser

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.

Continuous integration

Build server Platform Build status Integration tests
Azure Pipelines MacOS Azure Pipelines Mac Build status
Azure Pipelines Windows Azure Pipelines Windows Build status
Azure Pipelines Debian Azure Pipelines Debian Build status
Azure Pipelines Fedora Azure Pipelines Fedora Build status
Azure Pipelines Centos Azure Pipelines Cake Centos status
Azure Pipelines Ubuntu Azure Pipelines Ubuntu Build status
AppVeyor Windows AppVeyor branch AppVeyor branch
Travis Linux / MacOS Travis build status
TeamCity Windows TeamCity Build Status
Bitrise MacOS Bitrise Build Status Build Status
Bitrise Linux Bitrise Build Status Build Status
MyGet Build Services Windows MyGet Build Status  
Bitbucket Pipelines Linux Build Status Build Status
GitLab Linux build status  

Code Coverage

Coverage Status

Table of Contents

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


You can read the latest documentation at


This example downloads the Cake bootstrapper and executes a simple build script. The bootstrapper is used to bootstrap Cake in a simple way and is not in required in any way to execute build scripts. If you prefer to invoke the Cake executable yourself, take a look at the command line usage.

This example is also available on our homepage:

1. Install the Cake bootstrapper

The bootstrapper is used to download Cake and the tools required by the build script.

Invoke-WebRequest -OutFile build.ps1
curl -Lsfo
curl -Lsfo

2. Create a Cake script

Add a cake script called build.cake to the same location as the bootstrapper script that you downloaded.

var target = Argument("target", "Default");

  .Does(() =>
  Information("Hello World!");


3. Run it!

# Execute the bootstrapper script.
Linux / OS X
# Adjust the permissions for the bootstrapper script.
chmod +x

# Execute the bootstrapper script.


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


Copyright © .NET Foundation, Patrik Svensson, Mattias Karlsson, Gary Ewan Park, Alistair Chapman, Martin Björkström, Dave Glick, Pascal Berger 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.

The Cake Team would also like to say thank you to the guys at MyGet for their support in providing a Professional Subscription which allows us to continue to push all of our pre-release editions of Cake NuGet packages for early consumption by the Cake Community.

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.