Cake.Core 5.1.0

Prefix Reserved
dotnet add package Cake.Core --version 5.1.0
                    
NuGet\Install-Package Cake.Core -Version 5.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Cake.Core" Version="5.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Cake.Core" Version="5.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Cake.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Cake.Core --version 5.1.0
                    
#r "nuget: Cake.Core, 5.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Cake.Core@5.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Cake.Core&version=5.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Cake.Core&version=5.1.0
                    
Install as a Cake Tool

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.

Table of Contents

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

Documentation

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

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

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://github.com/cake-build/cake/discussions

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, Enrico Campidoglio, C. Augusto Proiete, Nils Andresen, 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.

Sponsors

Our wonderful sponsors:

Sponsors

Backers

Our wonderful backers:

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 Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (117)

Showing the top 5 NuGet packages that depend on Cake.Core:

Package Downloads
Cake.Common

Provides aliases (extension methods on Cake context) that support CI, build, unit tests, zip, signing, etc. for Cake.

Cake.DotNetTool.Module

Cake Module that extends Cake with ability to install tools using dotnet cli.

Cake.NuGet

Cake Module providing NuGet install capabilities for i.e. preprocessor directives like #addin, #tool and #load

Cake.Frosting

The .NET Core host for Cake.

Cake.Cli

The Cake CLI library.

GitHub repositories (8)

Showing the top 8 popular GitHub repositories that depend on Cake.Core:

Repository Stars
FastReports/FastReport
Free Open Source Reporting tool for .NET6/.NET Core/.NET Framework that helps your application generate document-like reports
xamarin/XamarinComponents
Plugins for Xamarin
dotnet/Nerdbank.GitVersioning
Stamp your assemblies, packages and more with a unique version generated from a single, simple version.json file and include git commit IDs for non-official builds.
daveaglick/Scripty
Tools to let you use Roslyn-powered C# scripts for code generation
axzxs2001/Asp.NetCoreExperiment
原来所有项目都移动到**OleVersion**目录下进行保留。新的案例装以.net 5.0为主,一部分对以前案例进行升级,一部分将以前的工作经验总结出来,以供大家参考!
Wyamio/Wyam
A modular static content and static site generator.
magic-chunks/magic-chunks-dotnetcore
Easy to use tool to config transformations for JSON, XML and YAML.
ejball/XmlDocMarkdown
Generates Markdown from .NET XML documentation comments.
Version Downloads Last Updated
5.1.0 10,099 10/4/2025
5.0.0 737,688 11/12/2024
4.2.0 35,497 10/23/2024
4.1.0 1,003 10/23/2024
4.0.0 770,952 11/18/2023
3.2.0 47,385 11/10/2023
3.1.0 258,627 7/9/2023
3.0.0 1,017,951 11/8/2022
2.3.0 50,074 10/14/2022
2.2.0 276,262 4/14/2022
2.1.0 80,077 2/20/2022
2.0.0 225,225 11/30/2021
2.0.0-rc0002 2,194 11/27/2021
2.0.0-rc0001 4,073 11/7/2021
1.3.0 153,922 10/7/2021
1.2.0 22,277 8/29/2021
1.1.0 230,553 3/6/2021
1.0.0 370,994 2/7/2021
1.0.0-rc0003 2,041 1/29/2021
1.0.0-rc0002 5,514 12/20/2020
1.0.0-rc0001 6,166 11/5/2020
0.38.5 144,543 9/20/2020
0.38.4 69,556 6/26/2020
0.38.3 1,771 6/26/2020
0.38.2 19,573 6/9/2020
0.38.1 4,524 5/30/2020
0.38.0 7,012 5/30/2020
0.37.0 97,435 2/1/2020
0.36.0 23,464 1/11/2020
0.35.0 51,169 9/28/2019
0.34.1 220,766 7/17/2019
0.34.0 2,455 7/16/2019
0.33.0 57,200 4/1/2019
0.32.1 37,227 1/4/2019
0.32.0 2,261 1/4/2019
0.31.0 135,145 12/13/2018
0.30.0 89,895 8/22/2018
0.29.0 107,043 7/6/2018
0.28.1 11,155 6/19/2018
0.28.0 55,055 5/31/2018
0.27.2 5,556 5/15/2018
0.27.1 5,189 4/21/2018
0.27.0 6,065 4/19/2018
0.26.1 59,869 3/3/2018
0.26.0 65,688 2/26/2018
0.25.0 27,118 1/17/2018
0.24.0 7,895 12/29/2017
0.23.0 83,614 10/11/2017
0.22.2 14,922 9/17/2017
0.22.1 22,574 9/16/2017
0.22.0 393,753 9/13/2017
0.21.1 16,725 7/15/2017
0.21.0 2,665 7/14/2017
0.20.0 14,585 6/12/2017
0.19.5 28,694 5/4/2017
0.19.4 2,862 4/18/2017
0.19.3 5,531 4/4/2017
0.19.2 2,409 4/1/2017
0.19.1 9,956 3/24/2017
0.19.0 2,917 3/23/2017
0.18.0 32,004 3/7/2017
0.17.0 124,625 11/9/2016
0.16.2 25,888 10/11/2016
0.16.1 17,331 9/25/2016
0.16.0 4,045 9/15/2016
0.15.2 6,503 7/29/2016
0.15.1 2,415 7/28/2016
0.15.0 2,396 7/26/2016
0.14.0 9,716 7/11/2016
0.13.0 6,779 6/7/2016
0.12.0 8,233 5/25/2016
0.11.0 296,006 5/1/2016
0.10.1 16,054 4/7/2016
0.10.0 3,120 3/16/2016
0.9.0 6,286 2/23/2016
0.8.0 27,175 1/18/2016
0.7.0 123,366 12/23/2015
0.6.4 6,076 12/9/2015
0.6.3 2,116 12/7/2015
0.6.2 2,823 12/3/2015
0.6.1 2,318 12/2/2015
0.6.0 3,766 11/4/2015
0.5.5 6,255 10/11/2015
0.5.4 12,684 9/11/2015
0.5.3 16,633 8/31/2015
0.5.2 4,435 8/15/2015
0.5.1 1,738 7/27/2015
0.5.0 1,682 7/20/2015
0.4.3 1,675 7/5/2015
0.4.2 2,347 5/27/2015
0.4.1 1,708 5/18/2015
0.4.0 1,597 5/12/2015
0.3.2 2,407 4/16/2015
0.2.2 1,775 3/31/2015
0.2.1 1,719 3/17/2015
0.2.0 1,618 3/15/2015
0.1.34 1,927 3/2/2015
0.1.33 3,297 2/24/2015
0.1.32 1,776 2/10/2015
0.1.30 1,798 2/8/2015
0.1.29 1,705 1/28/2015
0.1.28 1,636 1/18/2015
0.1.27 1,717 1/13/2015
0.1.26 1,664 1/11/2015
0.1.25 1,702 1/1/2015
0.1.24 1,990 12/12/2014
0.1.23 1,944 11/21/2014
0.1.22 1,844 11/20/2014
0.1.21 1,682 9/23/2014
0.1.20 1,698 9/14/2014
0.1.19 1,707 9/3/2014
0.1.18 1,753 8/21/2014
0.1.17 1,763 7/29/2014
0.1.16 1,716 7/23/2014
0.1.15 1,674 7/20/2014
0.1.14 2,004 7/16/2014

Feature
#4539 Add Woodpecker CI Support.
#4436 Add support for capturing MSBuild properties, items and target results.
#4431 Add property for GitLab's Pipeline Source to GitLabCIBuildInfo.
#4418 GitLab Server url should be available in GitLabCIServerInfo.
#4416 Make Merge Request source and target branch available in GitLabCIPullRequestInfo.
#4401 Add DotNetSlnRemove alias for dotnet sln remove command.
#4584 Update Spectre.Console to 0.51.1.
#4583 Update Newtonsoft.Json to 13.0.4.
#4582 Update Microsoft.Extensions.DependencyInjection to 9.0.9.
#4581 Update System.* to 9.0.9.
#4549 Update Basic.Reference.Assemblies.Net90 to 1.8.3.
#4548 Update Basic.Reference.Assemblies.Net80 to 1.8.3.
#4547 Update Autofac to 8.4.0.
#4546 Update Microsoft.IdentityModel.JsonWebTokens to 8.14.0.
#4545 Update Microsoft.Extensions.DependencyInjection to 9.0.8.
#4544 Update System.Reflection.Metadata to 9.0.8.
#4543 Update System.Collections.Immutable to 9.0.8.
#4542 Update System.Security.Cryptography.Pkcs to 9.0.8.
#4529 Update System.Reflection.Metadata 9.0.7.
#4528 Update System.Collections.Immutable to 9.0.7.
#4527 Update System.Security.Cryptography.Pkcs to 9.0.7.
#4526 Update Microsoft.Extensions.DependencyInjection to 9.0.7.
#4523 Update Microsoft.IdentityModel.JsonWebTokens to 8.12.1.
#4510 Update Microsoft.IdentityModel.JsonWebTokens to 8.12.0.
#4509 Update Basic.Reference.Assemblies.Net* to 1.8.2.
#4505 Update Basic.Reference.Assemblies.Net* to 1.8.1.
#4497 Cake.Testing.Xunit.v3 should not reference xunit.v3.
#4493 Update Spectre.Console to 0.50.0.
#4492 Update Microsoft.CodeAnalysis.CSharp.Scripting to 4.14.0.
#4491 Update System.Reflection.Metadata to 9.0.5.
#4490 Update System.Collections.Immutable to 9.0.5.
#4489 Update Autofac to 8.3.0.
#4488 Update Microsoft.Extensions.DependencyInjection to 9.0.5.
#4483 Update System.Security.Cryptography.Pkcs to 9.0.5.
#4482 Update Microsoft.IdentityModel.JsonWebTokens to 8.11.0.
#4481 Update NuGet.* to 6.14.0.
#4471 Improve script caching behavior.
#4440 Update Basic.Reference.Assemblies.Net80 to 1.8.0.
#4426 Update Microsoft.CodeAnalysis.CSharp.Scripting to 4.12.0.
#4425 Update NuGet.* to 6.12.1.
#4421 Update Microsoft.IdentityModel.JsonWebTokens to 8.3.0.
#4420 Update Autofac to 8.2.0.
#4412 NuGet 6.9 renamed no-cache to no-http-cache and deprecated the old setting name.
#4407 SignTool missing the /kc and /csp parameters. .
#4399 Refactor DotNetAliases: Extract methods into a separate partial class.
#4478 Failed to install addin when running from Windows powershell.exe.
#4475 Script execution does not always show a report summary.
#4410 AzurePipelinesPullRequestInfo fails to detect if build is running in the context of a GitHub Pull Request.
#4286 DotNetToolRunner doesn't support empty space at tool path.