MbDotNet 5.0.0

.NET Standard 1.3
dotnet add package MbDotNet --version 5.0.0
NuGet\Install-Package MbDotNet -Version 5.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="MbDotNet" Version="5.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MbDotNet --version 5.0.0
#r "nuget: MbDotNet, 5.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 MbDotNet as a Cake Addin
#addin nuget:?package=MbDotNet&version=5.0.0

// Install MbDotNet as a Cake Tool
#tool nuget:?package=MbDotNet&version=5.0.0

alternate text is missing from this package README image


A .NET client library for interacting with Mountebank. This project aims to reduce the amount of Mountebank knowledge required to create and configure imposters through a natural language interface.

A simple example:

await _client.CreateHttpImposter(4545, "My Imposter", imposter =>
		.OnPathAndMethodEqual("/customers/123", Method.Get)
		.ReturnsXml(HttpStatusCode.OK, new Customer { Email = "customer@test.com" });

To get started, read the documentation here.

NuGet Package

The library is available for install as a NuGet package.


The project currently targets .NET Standard 1.3, which is compatible with .NET Framework 4.6. If you need to use it in a project targeting an older framework version, such as .NET Framework 4.5, please use version 3.x of the package.

Upgrading from v4 (or earlier) to v5

There were a handful of breaking changes in v5 of the library. If you are planning to upgrade to v5, please take a look at the migration guide.

Unsupported Functionality

The following Mountebank functionality is not yet supported:

Pull requests are always welcome.



The following items are necessary in order to build and test the project:

  • .NET SDK 6.0
  • Mountebank or Docker Compose


To build the project, run the following from the root directory:

dotnet build


To run all tests, run the following from the root directory:

dotnet test

This includes a set of acceptance tests that run against an actual Mountebank instance. In order for those tests to succeed, Mountebank will need to be run with the --allowInjection and --debug options provided. See http://www.mbtest.org/docs/api/overview#get-imposter.

If you would prefer to run Mountebank via docker, please execute the following command from the root directory: docker compose up

If you would like to just run the unit tests (which do not require Mountebank), run the following:

dotnet test --filter TestCategory=Unit

Similarly, you can filter to only the acceptance tests using --filter TestCategory=Acceptance.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.3 is compatible.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 was computed.  netstandard2.1 was computed. 
.NET Framework net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on MbDotNet:

Package Downloads

Package Description


An F# wrapper around MbDotNet


Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
5.0.0 31,347 4/5/2023
5.0.0-rc8 5,599 9/26/2022
5.0.0-rc7 13,979 4/15/2021
5.0.0-rc6 446,929 8/26/2020
5.0.0-rc5 464 7/30/2020
5.0.0-rc4 1,745 5/8/2020
5.0.0-rc3 45,400 2/11/2020
5.0.0-rc2 2,610 5/8/2019
5.0.0-rc1 12,005 11/28/2018
4.3.5 60,799 9/26/2022
4.3.4 108,054 12/17/2021
4.3.3 179,932 8/26/2020
4.3.2 13,719 7/30/2020
4.3.1 260,744 5/8/2019
4.3.0 12,466 11/16/2018
4.2.0 21,377 5/3/2018
4.1.0 2,356 4/4/2018
4.0.0 18,534 7/24/2017
3.1.0 24,759 4/21/2017
3.0.0 1,300 3/13/2017
2.2.0 3,143 9/13/2016
2.1.1 953 9/11/2016
2.1.0 1,036 8/16/2016
2.0.0 2,053 6/17/2016
1.3.0 1,887 3/1/2016
1.2.0 1,114 2/23/2016
1.1.0 1,096 2/19/2016
1.0.0 2,107 2/14/2016