Cake.Core 2.0.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Cake.Core --version 2.0.0                
NuGet\Install-Package Cake.Core -Version 2.0.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="2.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Cake.Core --version 2.0.0                
#r "nuget: Cake.Core, 2.0.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.
// Install Cake.Core as a Cake Addin
#addin nuget:?package=Cake.Core&version=2.0.0

// Install Cake.Core as a Cake Tool
#tool nuget:?package=Cake.Core&version=2.0.0                

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 net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (108)

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 5 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为主,一部分对以前案例进行升级,一部分将以前的工作经验总结出来,以供大家参考!
Version Downloads Last updated
5.0.0 748 11/12/2024
4.2.0 14,769 10/23/2024
4.1.0 474 10/23/2024
4.0.0 521,066 11/18/2023
3.2.0 29,692 11/10/2023
3.1.0 195,595 7/9/2023
3.0.0 698,215 11/8/2022
2.3.0 47,124 10/14/2022
2.2.0 247,362 4/14/2022
2.1.0 77,614 2/20/2022
2.0.0 205,547 11/30/2021
2.0.0-rc0002 1,952 11/27/2021
2.0.0-rc0001 3,628 11/7/2021
1.3.0 136,167 10/7/2021
1.2.0 21,126 8/29/2021
1.1.0 219,116 3/6/2021
1.0.0 238,327 2/7/2021
1.0.0-rc0003 1,768 1/29/2021
1.0.0-rc0002 5,024 12/20/2020
1.0.0-rc0001 5,449 11/5/2020
0.38.5 135,024 9/20/2020
0.38.4 65,824 6/26/2020
0.38.3 1,524 6/26/2020
0.38.2 18,301 6/9/2020
0.38.1 3,817 5/30/2020
0.38.0 2,620 5/30/2020
0.37.0 89,774 2/1/2020
0.36.0 22,543 1/11/2020
0.35.0 44,854 9/28/2019
0.34.1 197,228 7/17/2019
0.34.0 2,196 7/16/2019
0.33.0 53,335 4/1/2019
0.32.1 34,201 1/4/2019
0.32.0 1,915 1/4/2019
0.31.0 98,182 12/13/2018
0.30.0 86,431 8/22/2018
0.29.0 105,758 7/6/2018
0.28.1 10,505 6/19/2018
0.28.0 51,918 5/31/2018
0.27.2 5,124 5/15/2018
0.27.1 4,767 4/21/2018
0.27.0 5,648 4/19/2018
0.26.1 58,320 3/3/2018
0.26.0 62,779 2/26/2018
0.25.0 25,917 1/17/2018
0.24.0 7,282 12/29/2017
0.23.0 82,400 10/11/2017
0.22.2 14,039 9/17/2017
0.22.1 22,147 9/16/2017
0.22.0 382,792 9/13/2017
0.21.1 15,789 7/15/2017
0.21.0 2,249 7/14/2017
0.20.0 13,801 6/12/2017
0.19.5 28,096 5/4/2017
0.19.4 2,481 4/18/2017
0.19.3 4,913 4/4/2017
0.19.2 1,627 4/1/2017
0.19.1 9,196 3/24/2017
0.19.0 2,530 3/23/2017
0.18.0 31,125 3/7/2017
0.17.0 122,329 11/9/2016
0.16.2 24,434 10/11/2016
0.16.1 16,188 9/25/2016
0.16.0 3,641 9/15/2016
0.15.2 6,027 7/29/2016
0.15.1 2,034 7/28/2016
0.15.0 2,031 7/26/2016
0.14.0 9,078 7/11/2016
0.13.0 6,187 6/7/2016
0.12.0 7,679 5/25/2016
0.11.0 282,671 5/1/2016
0.10.1 14,862 4/7/2016
0.10.0 2,648 3/16/2016
0.9.0 5,649 2/23/2016
0.8.0 25,327 1/18/2016
0.7.0 122,478 12/23/2015
0.6.4 5,367 12/9/2015
0.6.3 1,737 12/7/2015
0.6.2 2,405 12/3/2015
0.6.1 1,944 12/2/2015
0.6.0 3,315 11/4/2015
0.5.5 5,589 10/11/2015
0.5.4 11,791 9/11/2015
0.5.3 15,753 8/31/2015
0.5.2 3,831 8/15/2015
0.5.1 1,395 7/27/2015
0.5.0 1,338 7/20/2015
0.4.3 1,340 7/5/2015
0.4.2 1,996 5/27/2015
0.4.1 1,374 5/18/2015
0.4.0 1,260 5/12/2015
0.3.2 1,764 4/16/2015
0.2.2 1,383 3/31/2015
0.2.1 1,373 3/17/2015
0.2.0 1,294 3/15/2015
0.1.34 1,576 3/2/2015
0.1.33 1,800 2/24/2015
0.1.32 1,438 2/10/2015
0.1.30 1,461 2/8/2015
0.1.29 1,364 1/28/2015
0.1.28 1,298 1/18/2015
0.1.27 1,369 1/13/2015
0.1.26 1,328 1/11/2015
0.1.25 1,357 1/1/2015
0.1.24 1,651 12/12/2014
0.1.23 1,601 11/21/2014
0.1.22 1,498 11/20/2014
0.1.21 1,342 9/23/2014
0.1.20 1,353 9/14/2014
0.1.19 1,365 9/3/2014
0.1.18 1,409 8/21/2014
0.1.17 1,428 7/29/2014
0.1.16 1,367 7/23/2014
0.1.15 1,343 7/20/2014
0.1.14 1,631 7/16/2014

3714 Use Basic.Reference.Assemblies.* to ensure all standard reference assemblies are available for Roslyn.
3654 IsRunningOnAzurePipelines should ignore agent type.
3631 Refactor GitHub Actions Paths.
3610 Remove TFBuildProvider.
3590 Directories in AzurePipelinesBuildInfo are FilePaths - FilePath.GetDirectory then inconsistent.
3581 Stop shipping Cake.Portable Chocolatey package and Cake Homebrew formulae.
3579 Stop shipping Cake runner for .NET Framework and Cake runner for .NET Core.
3577 Remove ReverseDependencyAttribute.
3572 Only build for TargetFrameworks netcoreapp3.1, net5.0 and net6.0.
3282 GitVersion Tool: Rename verbosity values to match GitVersion values.
3222 Add Xamarin.iOS platform targets to MSBuildSettings PlatformTarget enumeration.
3151 Add support for Engine event hooks after execution as well as before.
3003 Remove DependencyAttribute.
2872 Bump eol target frameworks.
2788 Tool:OpenCover - the register-setting should be an option, rather than a string.
1111 DotNetCoreRestore: dotnet restore no longer supports globbing.
3630 Add GitHub Actions Environment properties.
3629 Add GitHub Actions UploadArtifact Command.
3628 Add GitHub Actions SetEnvironmentVariable Command.
3627 Add GitHub Actions AddPath Command.
3341 Epic: Introduce DotNet aliases (synonyms to DotNetCore aliases).
3709 Arguments alias should support ICollection as default value.
3691 Update Microsoft.NETCore.Platforms to 6.0.0.
3690 Update Microsoft.Extensions.DependencyInjection to 6.0.0.
3689 Update System.Reflection.Metadata to 6.0.0.
3688 Update System.Collections.Immutable to 6.0.0.
3681 ScriptAssemblyResolver logging should be at debug/diagnostic level.
3662 Update Microsoft.CodeAnalysis.CSharp.Scripting to 4.0.0-6.final.
3647 Display message of criteria when task fails to run due to criteria not being met.
3644 Add DotNetNuGetUpdateSource aliases (synonym to DotNetCoreNuGetUpdateSource).
3643 Add DotNetNuGetRemoveSource aliases (synonym to DotNetCoreNuGetRemoveSource).
3642 Add DotNetNuGetListSourceSettings (derived from to DotNetNuGetSource).
3641 Add DotNetNuGetHasSource aliases (synonym to DotNetCoreNuGetHasSource).
3640 Add DotNetNuGetEnableSource aliases (synonym to DotNetCoreNuGetEnableSource).
3639 Add DotNetNuGetDisableSource aliases (synonym to DotNetCoreNuGetDisableSource).
3607 Add EnableCompressionInSingleFile to DotNetCorePublishSettings.
3599 Add VS2022 to default MSBuild Resolver.
3598 Remove Preview from VS2022 MSBuild Resolver.
3595 Update Autofac to 6.3.0.
3593 Update Microsoft.CodeAnalysis.CSharp.Scripting to 4.0.0-5.final.
3591 Update Microsoft.NETCore.Platforms to 6.0.0-rc.2.21480.5.
3555 Add DotNetNuGetAddSource aliases (synonym to DotNetCoreNuGetAddSource).
3554 Add DotNetNuGetDelete aliases (synonym to DotNetCoreNuGetDelete).
3553 Add DotNetNuGetPush aliases (synonym to DotNetCoreNuGetPush).
3552 Add DotNetPack alias (synonym to DotNetCorePack).
3551 Add DotNetPublish alias (synonym to DotNetCorePublish).
3550 Add DotNetVSTest alias (synonym to DotNetCoreVSTest).
3549 Add DotNetTest alias (synonym to DotNetCoreTest).
3548 Add DotNetBuildServer alias (synonym to DotNetCoreBuildServer).
3547 Add DotNetBuild alias (synonym to DotNetCoreBuild).
3546 Add DotNetRestore alias (synonym to DotNetCoreRestore).
3545 Add DotNetClean alias (synonym to DotNetCoreClean).
3544 Add DotNetExecute alias (synonym to DotNetCoreExecute).
3543 Add DotNetRun alias (synonym to DotNetCoreRun).
3542 Add DotNetTool alias (synonym to DotNetCoreTool).
3523 Add DotNetMSBuild alias (synonym to DotNetCoreMSBuild).
3215 Add RunCommand with postAction parameter to DotNetCoreTool.
3075 Make FilePath and DirectoryPath comparable by value.
2571 OctopusDeploy DeployTo property to take collection of string to specify multiple environments.
2075 Add overloads for DotNetCore*() methods taking FilePath instead of string.
1794 Private is missing from ProjectReference.
1616 Error message on circular references leads to poor developer experience.
3701 Add cake-module tag to Cake.DotNetTool.Module NuGet package.
3602 Switch to Cake.Tool as primary package in REAME.md.
3711 SemanticVersion missing equals/not equals operator, prerelease sorted wrong.
3697 Error: The requested service 'Cake.Commands.DefaultCommandSettings' has not been registered.
3693 Core suffix is still used in some settings classes.
3683 Use DotNetMSBuildSettings instead of DotNetCoreMSBuildSettings on new dotnet aliases settings.
3671 VS2022: msbuild can not be located, only Build Tools are installed.
2665 C*  8 Using Statement produces compile error.
2443 Erroneous Target path must be an absolute path when preserveFolderStructure is used with CopyFiles.
1669 Release notes does not tolerate prerelease versions.