Skip to content
Cake (C# Make) is a cross platform build automation system.
C# Other
  1. C# 99.8%
  2. Other 0.2%
Branch: develop
Clone or download
Pull request Compare This branch is even with cake-build:develop.
gep13 Merge pull request cake-build#2635 from devlead/feature/cake-buildgh-…
…2634

GH2634: Move from global vars to typed context
Latest commit 9edba94 Oct 6, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github (cake-buildGH-850) Added Issue and PR Templates Apr 29, 2016
build (cake-buildGH-2634) Move from global vars to typed context Oct 6, 2019
nuspec (cake-buildGH-2628) Add Jérémie to copyright & nuspec Oct 1, 2019
src Merge branch 'develop' into marusyk/2532 Oct 3, 2019
tests/integration Merge branch 'develop' into marusyk/2532 Oct 3, 2019
.editorconfig (maint) Added .cake file to EditorConfig Dec 11, 2015
.gitattributes (cake-buildGH-669) Added .gitattributes file Jan 11, 2017
.gitignore (cake-buildGH-2284) Version command display SemVer Sep 15, 2018
.gitlab-ci.yml (build) Update addins&tools,refactor bootstrappers Dec 30, 2018
.travis.yml (cake-buildGH-2603) Added .NET Core 3 moniker to Cake.Tool Sep 25, 2019
CODEOFCONDUCT.md Update CODEOFCONDUCT.md Sep 2, 2016
CONTRIBUTING.md Updated CONTRIBUTING.md Mar 10, 2016
GitReleaseManager.yaml Revert 26013c0 Jun 13, 2017
GitVersion.yml (build) Update addins&tools,refactor bootstrappers Dec 30, 2018
LICENSE Cake joins the .NET Foundation Jun 9, 2016
README.md (cake-buildGH-2628) Add Jérémie to copyright & nuspec Oct 1, 2019
ReleaseNotes.md (build) Updated version and release notes. Sep 28, 2019
appveyor.yml (build) Update addins&tools,refactor bootstrappers Dec 30, 2018
bitbucket-pipelines.yml (build) Update addins&tools,refactor bootstrappers Dec 30, 2018
build.cake (cake-buildGH-2634) Move from global vars to typed context Oct 6, 2019
build.config
build.ps1
build.sh (cake-buildGH-2603) Added .NET Core 3 moniker to Cake.Tool Sep 25, 2019
global.json
signclient.filter
signclient.json Move to signing service v2 Nov 29, 2017

README.md

Cake

NuGet Azure Artifacts 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 Build Status Build Status
Bitrise Linux Build Status Build Status
MyGet Build Services Windows MyGet Build Status  
Bitbucket Pipelines Linux 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

Documentation

You can read the latest documentation at https://cakebuild.net/.

Example

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: https://cakebuild.net/docs/tutorials/setting-up-a-new-project

1. Install the Cake bootstrapper

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

Windows
Invoke-WebRequest https://cakebuild.net/download/bootstrapper/windows -OutFile build.ps1
Linux
curl -Lsfo build.sh https://cakebuild.net/download/bootstrapper/linux
OS X
curl -Lsfo build.sh https://cakebuild.net/download/bootstrapper/osx

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");

Task("Default")
  .Does(() =>
{
  Information("Hello World!");
});

RunTarget(target);

3. Run it!

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

# Execute the bootstrapper script.
./build.sh

Contributing

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 https://gitter.im/cake-build/cake

License

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

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

Thanks

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.

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.

You can’t perform that action at this time.