#Cake
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.
You can read the latest documentation at http://cakebuild.net/.
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: http://cakebuild.net/docs/tutorials/setting-up-a-new-project
The bootstrapper is used to download Cake and the tools required by the build script.
Invoke-WebRequest http://cakebuild.net/download/bootstrapper/windows -OutFile build.ps1
curl -Lsfo build.sh http://cakebuild.net/download/bootstrapper/linux
curl -Lsfo build.sh http://cakebuild.net/download/bootstrapper/osx
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);
# Execute the bootstrapper script.
./build.ps1
# Adjust the permissions for the bootstrapper script.
chmod +x build.sh
# Execute the bootstrapper script.
./build.sh
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.
- 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.
Copyright © Patrik Svensson, Mattias Karlsson, Gary Ewan Park and contributors. Cake is provided as-is under the MIT license. For more information see LICENSE.
- For Roslyn, see https://github.com/dotnet/roslyn/blob/master/License.txt
- For Mono.CSharp, see https://github.com/mono/mono/blob/master/mcs/LICENSE
- For Autofac, see https://github.com/autofac/Autofac/blob/master/LICENSE
- For NuGet.Core, see https://nuget.codeplex.com/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.
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.
This project is supported by the .NET Foundation.