Cake.Cli 2.0.0-rc0002

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

// Install Cake.Cli as a Cake Tool
#tool nuget:?package=Cake.Cli&version=2.0.0-rc0002&prerelease


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


You can read the latest documentation at

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


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


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.


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.


Our wonderful sponsors:



Our wonderful 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 (2)

Showing the top 2 NuGet packages that depend on Cake.Cli:

Package Downloads
Cake.Frosting The ID prefix of this package has been reserved for one of the owners of this package by

The .NET Core host for Cake.


Cake scripts, but in a Console app

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.0.0 186,962 11/18/2023
3.2.0 18,372 11/10/2023
3.1.0 99,281 7/9/2023
3.0.0 433,517 11/8/2022
2.3.0 39,314 10/14/2022
2.2.0 189,635 4/14/2022
2.1.0 58,953 2/20/2022
2.0.0 119,168 11/30/2021
2.0.0-rc0002 1,346 11/27/2021
2.0.0-rc0001 1,301 11/7/2021
1.3.0 67,988 10/7/2021
1.2.0 13,675 8/29/2021
1.1.0 76,520 3/6/2021
1.0.0 48,741 2/7/2021
1.0.0-rc0003 619 1/29/2021
1.0.0-rc0002 2,593 12/20/2020

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)
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
2443 Erroneous Target path must be an absolute path when preserveFolderStructure is used with CopyFiles
1669 Release notes does not tolerate prerelease versions
3709 Arguments alias should support ICollection<T> 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
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
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