Cake.Testing.Xunit 2.2.0

.NET 5.0 .NET Core 3.1
NuGet\Install-Package Cake.Testing.Xunit -Version 2.2.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.
dotnet add package Cake.Testing.Xunit --version 2.2.0
<PackageReference Include="Cake.Testing.Xunit" Version="2.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Cake.Testing.Xunit --version 2.2.0
#r "nuget: Cake.Testing.Xunit, 2.2.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Cake.Testing.Xunit as a Cake Addin
#addin nuget:?package=Cake.Testing.Xunit&version=2.2.0

// Install Cake.Testing.Xunit as a Cake Tool
#tool nuget:?package=Cake.Testing.Xunit&version=2.2.0


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 Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp3.1
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.2.0 1,049 4/14/2022
2.1.0 356 2/20/2022
2.0.0 489 11/30/2021
2.0.0-rc0002 1,204 11/27/2021
2.0.0-rc0001 113 11/7/2021
1.3.0 340 10/7/2021
1.2.0 292 8/29/2021
1.1.0 861 3/6/2021
1.0.0 308 2/7/2021
1.0.0-rc0003 130 1/29/2021
1.0.0-rc0002 277 12/20/2020
1.0.0-rc0001 283 11/5/2020
0.38.5 618 9/20/2020
0.38.4 553 6/26/2020
0.38.3 303 6/26/2020
0.38.2 348 6/9/2020
0.38.1 413 5/30/2020
0.38.0 267 5/30/2020
0.37.0 557 2/1/2020
0.36.0 493 1/11/2020

3821 PostAction is not setable on DotNetSettings.
3485 Add alias for dotnet workload search command.
2099 Cache compiled script on disk.
3866 Update Microsoft.NETCore.Platforms to 6.0.3.
3854 Update Spectre.Console to 0.44.0.
3851 Update System.Reflection.Metadata to 6.0.1.
3846 Update Microsoft.CodeAnalysis.CSharp.Scripting to 4.1.0.
3844 Update Microsoft.NETCore.Platforms to 6.0.2.
3843 Update NuGet.* to 6.1.0.
2763 Provide property to return parent directory on DirectoryPath.
2431 UploadFile should support option of username/password.
3819 Update Git Release Manager Comment template to remove Cake NuGet package and Chocolatey portable.
3859 PathCollapser.Collapse breaks UNC paths.
3858 PathCollapser.Collapse shows wrong output for if .. is the second segment in the path.
3823 Executing a cake script leads to System.IO.FileNotFoundException for several System.(...) assemblies.
3735 Incorrect warnings in diagnostic logs.