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 (109)

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 2,848 11/12/2024
4.2.0 15,652 10/23/2024
4.1.0 476 10/23/2024
4.0.0 526,264 11/18/2023
3.2.0 29,804 11/10/2023
3.1.0 196,128 7/9/2023
3.0.0 700,060 11/8/2022
2.3.0 47,148 10/14/2022
2.2.0 247,961 4/14/2022
2.1.0 77,653 2/20/2022
2.0.0 205,639 11/30/2021
2.0.0-rc0002 1,953 11/27/2021
2.0.0-rc0001 3,630 11/7/2021
1.3.0 136,360 10/7/2021
1.2.0 21,128 8/29/2021
1.1.0 219,181 3/6/2021
1.0.0 239,743 2/7/2021
1.0.0-rc0003 1,769 1/29/2021
1.0.0-rc0002 5,026 12/20/2020
1.0.0-rc0001 5,460 11/5/2020
0.38.5 135,067 9/20/2020
0.38.4 65,861 6/26/2020
0.38.3 1,525 6/26/2020
0.38.2 18,302 6/9/2020
0.38.1 3,820 5/30/2020
0.38.0 2,625 5/30/2020
0.37.0 89,828 2/1/2020
0.36.0 22,545 1/11/2020
0.35.0 44,862 9/28/2019
0.34.1 197,501 7/17/2019
0.34.0 2,197 7/16/2019
0.33.0 53,348 4/1/2019
0.32.1 34,227 1/4/2019
0.32.0 1,918 1/4/2019
0.31.0 98,573 12/13/2018
0.30.0 86,447 8/22/2018
0.29.0 105,833 7/6/2018
0.28.1 10,514 6/19/2018
0.28.0 51,930 5/31/2018
0.27.2 5,125 5/15/2018
0.27.1 4,768 4/21/2018
0.27.0 5,649 4/19/2018
0.26.1 58,325 3/3/2018
0.26.0 62,784 2/26/2018
0.25.0 25,918 1/17/2018
0.24.0 7,283 12/29/2017
0.23.0 82,401 10/11/2017
0.22.2 14,040 9/17/2017
0.22.1 22,148 9/16/2017
0.22.0 382,872 9/13/2017
0.21.1 15,790 7/15/2017
0.21.0 2,250 7/14/2017
0.20.0 13,802 6/12/2017
0.19.5 28,099 5/4/2017
0.19.4 2,482 4/18/2017
0.19.3 4,914 4/4/2017
0.19.2 1,628 4/1/2017
0.19.1 9,197 3/24/2017
0.19.0 2,531 3/23/2017
0.18.0 31,126 3/7/2017
0.17.0 122,330 11/9/2016
0.16.2 24,435 10/11/2016
0.16.1 16,189 9/25/2016
0.16.0 3,642 9/15/2016
0.15.2 6,028 7/29/2016
0.15.1 2,035 7/28/2016
0.15.0 2,032 7/26/2016
0.14.0 9,079 7/11/2016
0.13.0 6,188 6/7/2016
0.12.0 7,680 5/25/2016
0.11.0 282,815 5/1/2016
0.10.1 14,863 4/7/2016
0.10.0 2,649 3/16/2016
0.9.0 5,653 2/23/2016
0.8.0 25,330 1/18/2016
0.7.0 122,479 12/23/2015
0.6.4 5,368 12/9/2015
0.6.3 1,738 12/7/2015
0.6.2 2,406 12/3/2015
0.6.1 1,945 12/2/2015
0.6.0 3,316 11/4/2015
0.5.5 5,590 10/11/2015
0.5.4 11,792 9/11/2015
0.5.3 15,757 8/31/2015
0.5.2 3,832 8/15/2015
0.5.1 1,396 7/27/2015
0.5.0 1,339 7/20/2015
0.4.3 1,341 7/5/2015
0.4.2 1,997 5/27/2015
0.4.1 1,375 5/18/2015
0.4.0 1,261 5/12/2015
0.3.2 1,765 4/16/2015
0.2.2 1,384 3/31/2015
0.2.1 1,374 3/17/2015
0.2.0 1,295 3/15/2015
0.1.34 1,577 3/2/2015
0.1.33 1,811 2/24/2015
0.1.32 1,439 2/10/2015
0.1.30 1,462 2/8/2015
0.1.29 1,365 1/28/2015
0.1.28 1,299 1/18/2015
0.1.27 1,370 1/13/2015
0.1.26 1,329 1/11/2015
0.1.25 1,358 1/1/2015
0.1.24 1,652 12/12/2014
0.1.23 1,602 11/21/2014
0.1.22 1,499 11/20/2014
0.1.21 1,343 9/23/2014
0.1.20 1,354 9/14/2014
0.1.19 1,366 9/3/2014
0.1.18 1,410 8/21/2014
0.1.17 1,429 7/29/2014
0.1.16 1,368 7/23/2014
0.1.15 1,344 7/20/2014
0.1.14 1,632 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.