NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet, #1842 most downloaded on NuGet
Consumer-driven contract testing library
Latest stable
5.0.1
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 1.5 years
Nearly every release is documented
notes for 59 of the last 60 stable releases
12 versions withdrawn
withdrawn after publishing
127 years old
108 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
BREAKING CHANGE: Remove obsolete WithNativeBackend calls
v5.0.0 - BREAKING CHANGE: Remove obsolete WithNativeBackend calls - BREAKING CHANGE: Remove obsolete IMessagePact and MessagePact - BREAKING CHANGE: Refactor verifier to support verifying combined HTTP and message pacts - BREAKING CHANGE: Replace Newtonsoft with System.Text.Json - BREAKING CHANGE: Minimum supported .Net Framework version is now 4.6.2 instead of 4.6.1 - feat: Add Pact Specification v4 support - feat: MacOS ARM64 target is now fully supported - feat: More efficient and robust messaging interaction verification
Full Changelog: https://github.com/pact-foundation/pact-net/compare/5.0.0...5.0.1
Your coding agent can read these notes before it upgrades. Set up the MCP server →
BREAKING CHANGE: Remove obsolete WithNativeBackend calls
v5.0.0 - BREAKING CHANGE: Remove obsolete WithNativeBackend calls - BREAKING CHANGE: Remove obsolete IMessagePact and MessagePact - BREAKING CHANGE: Refactor verifier to support verifying combined HTTP and message pacts - BREAKING CHANGE: Replace Newtonsoft with System.Text.Json - BREAKING CHANGE: Minimum supported .Net Framework version is now 4.6.2 instead of 4.6.1 - feat: Add Pact Specification v4 support - feat: MacOS ARM64 target is now fully supported - feat: More efficient and robust messaging interaction verification
This version is the same as release 5.0.0-beta.3, and marks the full release of PactNet 5.0.0 with some breaking changes. Please see below for details and refer to the upgrade guide for more.
IMessagePact and MessagePactPactVerificationFailedException instead of more generic PactFailureException when veritication is unsuccessful (https://github.com/pact-foundation/pact-net/issues/505)Full Changelog: https://github.com/pact-foundation/pact-net/compare/4.5.0...5.0.0
Thanks to @mefellows, @YOU54F, @flakey-bit and the thousands of you that have helped to beta test all of the breaking changes ❤️
Use matchers with query strings
v4.5.0 - Provider state options - Use matchers with query strings - xUnit output project
Full Changelog: https://github.com/pact-foundation/pact-net/compare/4.4.0...4.5.0
v4.4.0 - Upgrade to FFI v0.4.0
v4.4.0 - Upgrade to FFI v0.4.0
Full Changelog: https://github.com/pact-foundation/pact-net/compare/4.3.0...4.4.0
v4.3.0
v4.3.0
Please Note: OSX ARM64 support has been merged but is still considered alpha. We are currently unable to run CI on OSX/ARM64 on GitHub Actions runners and so can't automatically verify the integrity of each release. Those that have tried PactNet locally on M1/M2 Macs have reported no issues, but until CI support is available this platform is considered unsupported.
Full Changelog: https://github.com/pact-foundation/pact-net/compare/4.2.1...4.3.0
v4.2.1
v4.2.1
Full Changelog: https://github.com/pact-foundation/pact-net/compare/4.2.0...4.2.1
v4.2.0
v4.2.0
The following APIs have been marked as obsolete, but are retained for backwards compatibility until PactNet 5.0.0:
IMessagePact
IMessagePactV3
MessagePact.V3(string, string)
MessagePact.V3(string. string, PactConfig)
IPactV2.UsingNativeBackend()
IPactV3.UsingNativeBackend()
IMessagePactV3.UsingNativeBackend()
Instead, Pact and MessagePact have been combined so that only Pact is needed. A method determines which type of interactions are being defined, from either WithHttpInteractions for standard HTTP request/response or WithMessageInteractions for message pacts. The older APIs are retained but internally they just call the new API.
See the samples or docs for further details.
Full Changelog: https://github.com/pact-foundation/pact-net/compare/4.1.0...4.2.0
v4.1.0
v4.1.0
Full Changelog: https://github.com/pact-foundation/pact-net/compare/4.0.0...4.1.0
Complete rewrite to take advantage of new Rust core pact library shared between all language integrations
v4.0.0 - Complete rewrite to take advantage of new Rust core pact library shared between all language integrations
This is the first major release of PactNet v4.x, which is a major rewrite of PactNet with a number of breaking changes. Please see the upgrade guide for upgrading from PactNet 3.x to 4.x.
The changes since 4.0.0-beta.5 are:
Full Changelog: https://github.com/pact-foundation/pact-net/compare/4.0.0-beta.5...4.0.0
https://www.nuget.org/packages/PactNet/3.0.2
https://www.nuget.org/packages/PactNet/3.0.2
https://www.nuget.org/packages/PactNet/3.0.1
https://www.nuget.org/packages/PactNet/3.0.1
Support a remote mock service for consumer tests
Features
Install-Package PactNet.Windows -Version 3.0.0
or
Install-Package PactNet.OSX -Version 3.0.0
or
Install-Package PactNet.Linux.x86 -Version 3.0.0
or
Install-Package PactNet.Linux.x64 -Version 3.0.0
Nothing published for this version
Updating to the latest version of the pact standalone core
Tweaks
Install-Package PactNet.Windows -Version 2.6.1
or
Install-Package PactNet.OSX -Version 2.6.1
or
Install-Package PactNet.Linux.x86 -Version 2.6.1
or
Install-Package PactNet.Linux.x64 -Version 2.6.1
Updating to the pact standalone core
Tweaks
Features
Install-Package PactNet.Windows -Version 2.6.0
or
Install-Package PactNet.OSX -Version 2.6.0
or
Install-Package PactNet.Linux.x86 -Version 2.6.0
or
Install-Package PactNet.Linux.x64 -Version 2.6.0
Updating to the latest version of the pact standalone core
Tweaks
Features
Install-Package PactNet.Windows -Version 2.5.5
or
Install-Package PactNet.OSX -Version 2.5.5
or
Install-Package PactNet.Linux.x86 -Version 2.5.5
or
Install-Package PactNet.Linux.x64 -Version 2.5.5
Updating to the latest version of the pact standalone core
Tweaks
Install-Package PactNet.Windows -Version 2.5.4
or
Install-Package PactNet.OSX -Version 2.5.4
or
Install-Package PactNet.Linux.x86 -Version 2.5.4
or
Install-Package PactNet.Linux.x64 -Version 2.5.4
Updating to the latest version of the pact standalone core
Tweaks
Install-Package PactNet.Windows -Version 2.5.3
or
Install-Package PactNet.OSX -Version 2.5.3
or
Install-Package PactNet.Linux.x86 -Version 2.5.3
or
Install-Package PactNet.Linux.x64 -Version 2.5.3
Removing ConsumerTags and ProviderTags from PactVerifierConfig, as they were accidentally added and do nothing.
Tweaks
ConsumerTags and ProviderTags from PactVerifierConfig, as they were accidentally added and do nothing.Install-Package PactNet.Windows -Version 2.5.2
or
Install-Package PactNet.OSX -Version 2.5.2
or
Install-Package PactNet.Linux.x86 -Version 2.5.2
or
Install-Package PactNet.Linux.x64 -Version 2.5.2
Hopefully fixing https://github.com/pact-foundation/pact-net/issues/231
Bug Fixes
Install-Package PactNet.Windows -Version 2.5.1
or
Install-Package PactNet.OSX -Version 2.5.1
or
Install-Package PactNet.Linux.x86 -Version 2.5.1
or
Install-Package PactNet.Linux.x64 -Version 2.5.1
Adding support for retrieving all pacts for a given provider
Features
See issue https://github.com/pact-foundation/pact-net/issues/223 for more details.
Install-Package PactNet.Windows -Version 2.5.0
or
Install-Package PactNet.OSX -Version 2.5.0
or
Install-Package PactNet.Linux.x86 -Version 2.5.0
or
Install-Package PactNet.Linux.x64 -Version 2.5.0
Adding support for multiple verifier custom headers. See https://github.com/pact-foundation/pact-net/pull/210. Thanks @scalancea!
Features
Install-Package PactNet.Windows -Version 2.4.8
or
Install-Package PactNet.OSX -Version 2.4.8
or
Install-Package PactNet.Linux.x86 -Version 2.4.8
or
Install-Package PactNet.Linux.x64 -Version 2.4.8
Updating to the latest version of the pact standalone core
Tweaks
Install-Package PactNet.Windows -Version 2.4.7
or
Install-Package PactNet.OSX -Version 2.4.7
or
Install-Package PactNet.Linux.x86 -Version 2.4.7
or
Install-Package PactNet.Linux.x64 -Version 2.4.7
Updating to the latest version of the pact standalone core, which adds pact broker support for bearer tokens.
Tweaks
Install-Package PactNet.Windows -Version 2.4.6
or
Install-Package PactNet.OSX -Version 2.4.6
or
Install-Package PactNet.Linux.x86 -Version 2.4.6
or
Install-Package PactNet.Linux.x64 -Version 2.4.6
Making all properties on PactUriOptions public as per https://github.com/pact-foundation/pact-net/pull/174/files
Tweaks
Install-Package PactNet.Windows -Version 2.4.5
or
Install-Package PactNet.OSX -Version 2.4.5
or
Install-Package PactNet.Linux.x86 -Version 2.4.5
or
Install-Package PactNet.Linux.x64 -Version 2.4.5
Updating to the latest version of the pact standalone core.
Tweaks
Install-Package PactNet.Windows -Version 2.4.4
or
Install-Package PactNet.OSX -Version 2.4.4
or
Install-Package PactNet.Linux.x86 -Version 2.4.4
or
Install-Package PactNet.Linux.x64 -Version 2.4.4
Adding support for custom SSL certs, so there is an option better than ignoring certification validation errors.
Features Added
Thanks @klimisa for all your hard work on https://github.com/pact-foundation/pact-net/pull/164
Install-Package PactNet.Windows -Version 2.4.3
or
Install-Package PactNet.OSX -Version 2.4.3
or
Install-Package PactNet.Linux.x86 -Version 2.4.3
or
Install-Package PactNet.Linux.x64 -Version 2.4.3
Updating to the latest version of the pact standalone core, which fixes an issue where the pact version isn't written to the pact file.
Bug Fixes
Install-Package PactNet.Windows -Version 2.3.3
or
Install-Package PactNet.OSX -Version 2.3.3
or
Install-Package PactNet.Linux.x86 -Version 2.3.3
or
Install-Package PactNet.Linux.x64 -Version 2.3.3
Updating to the latest version of the pact standalone core.
Tweaks
Install-Package PactNet.Windows -Version 2.3.2
or
Install-Package PactNet.OSX -Version 2.3.2
or
Install-Package PactNet.Linux.x86 -Version 2.3.2
or
Install-Package PactNet.Linux.x64 -Version 2.3.2
Nothing published for this version
Adding support for monkey patching the ruby standalone core See https://github.com/pact-foundation/pact-net/issues/148
Features Added
Install-Package PactNet.Windows -Version 2.3.0
or
Install-Package PactNet.OSX -Version 2.3.0
or
Install-Package PactNet.Linux.x86 -Version 2.3.0
or
Install-Package PactNet.Linux.x64 -Version 2.3.0
Updating to the latest version of the pact standalone core.
Tweaks
Install-Package PactNet.Windows -Version 2.2.5
or
Install-Package PactNet.OSX -Version 2.2.5
or
Install-Package PactNet.Linux.x86 -Version 2.2.5
or
Install-Package PactNet.Linux.x64 -Version 2.2.5
Fixing the "The path is not of a legal form" error when running on net462 due to file:/// no longer being support when calling Path.GetDirectoryName.
Bug Fix
file:/// no longer being support when calling Path.GetDirectoryName.Install-Package PactNet.Windows -Version 2.2.4
or
Install-Package PactNet.OSX -Version 2.2.4
or
Install-Package PactNet.Linux.x86 -Version 2.2.4
or
Install-Package PactNet.Linux.x64 -Version 2.2.4
Generate an error when creating a MinType matcher with a min value that is less than 1. See https://github.com/pact-foundation/pact-net/issues/141 for
Tweaks
Install-Package PactNet.Windows -Version 2.2.3
or
Install-Package PactNet.OSX -Version 2.2.3
or
Install-Package PactNet.Linux.x86 -Version 2.2.3
or
Install-Package PactNet.Linux.x64 -Version 2.2.3
Preventing any json serialisation settings from being set globally.
Tweaks
Thanks @Blackbaud-KrisMahon for this change.
Install-Package PactNet.Windows -Version 2.2.2
or
Install-Package PactNet.OSX -Version 2.2.2
or
Install-Package PactNet.Linux.x86 -Version 2.2.2
or
Install-Package PactNet.Linux.x64 -Version 2.2.2
Updating to the latest version of the pact standalone core.
Tweaks
Install-Package PactNet.Windows -Version 2.2.1
or
Install-Package PactNet.OSX -Version 2.2.1
or
Install-Package PactNet.Linux.x86 -Version 2.2.1
or
Install-Package PactNet.Linux.x64 -Version 2.2.1
Adding the ability to filter failing interactions when running a Pact verification. Instructions for how to use this are written to the test output wh
Features
Install-Package PactNet.Windows -Version 2.2.0
or
Install-Package PactNet.OSX -Version 2.2.0
or
Install-Package PactNet.Linux.x86 -Version 2.2.0
or
Install-Package PactNet.Linux.x64 -Version 2.2.0
Adding support for the OPTIONS HTTP verb
Tweaks
Install-Package PactNet.Windows -Version 2.1.2
or
Install-Package PactNet.OSX -Version 2.1.2
or
Install-Package PactNet.Linux.x86 -Version 2.1.2
or
Install-Package PactNet.Linux.x64 -Version 2.1.2
Tweaking the host param to take a IPAddress enum value
Tweaks
Install-Package PactNet.Windows -Version 2.1.1
or
Install-Package PactNet.OSX -Version 2.1.1
or
Install-Package PactNet.Linux.x86 -Version 2.1.1
or
Install-Package PactNet.Linux.x64 -Version 2.1.1
Adding support for specifying a host. See https://github.com/SEEK-Jobs/pact-net/issues/122. Thanks @waelemara for the PR
Features
Install-Package PactNet.Windows -Version 2.1.0
or
Install-Package PactNet.OSX -Version 2.1.0
or
Install-Package PactNet.Linux.x86 -Version 2.1.0
or
Install-Package PactNet.Linux.x64 -Version 2.1.0
Updating to the latest Pact Standalone Core (1.19.0), which fixes a consumer mock provider problem on Linux when using a consumer or provider name tha
Updating to the latest Pact Standalone Core (1.19.0), which fixes a consumer mock provider problem on Linux when using a consumer or provider name that includes a space. See https://github.com/pact-foundation/pact-ruby-standalone/pull/7
Install-Package PactNet.Windows -Version 2.0.21
or
Install-Package PactNet.OSX -Version 2.0.21
or
Install-Package PactNet.Linux.x86 -Version 2.0.21
or
Install-Package PactNet.Linux.x64 -Version 2.0.21
Updating to the latest Pact Standalone Core (1.16.0)
Updating to the latest Pact Standalone Core (1.16.0)
Install-Package PactNet.Windows -Version 2.0.20
or
Install-Package PactNet.OSX -Version 2.0.20
or
Install-Package PactNet.Linux.x86 -Version 2.0.20
or
Install-Package PactNet.Linux.x64 -Version 2.0.20
Updating to the latest Pact Standalone Core (1.11.0)
Updating to the latest Pact Standalone Core (1.11.0)
Install-Package PactNet.Windows -Version 2.0.19
or
Install-Package PactNet.OSX -Version 2.0.19
or
Install-Package PactNet.Linux.x86 -Version 2.0.19
or
Install-Package PactNet.Linux.x64 -Version 2.0.19
Updating to the latest Pact Standalone Core (1.9.1)
Updating to the latest Pact Standalone Core (1.9.1)
Install-Package PactNet.Windows -Version 2.0.18
or
Install-Package PactNet.OSX -Version 2.0.18
or
Install-Package PactNet.Linux.x86 -Version 2.0.18
or
Install-Package PactNet.Linux.x64 -Version 2.0.18
Dropping the official Pact Specification V2 Release
Dropping the official Pact Specification V2 Release
Install-Package PactNet.Windows -Version 2.0.17
or
Install-Package PactNet.OSX -Version 2.0.17
or
Install-Package PactNet.Linux.x86 -Version 2.0.17
or
Install-Package PactNet.Linux.x64 -Version 2.0.17
Making the platform specific packages more .NET semantic. We now use . instead of -, so PactNet-Windows is now PactNet.Windows.
Tweaks
. instead of -, so PactNet-Windows is now PactNet.Windows.Install-Package PactNet.Windows -Version 2.0.16-beta -Pre
or
Install-Package PactNet.OSX -Version 2.0.16-beta -Pre
or
Install-Package PactNet.Linux.x86 -Version 2.0.16-beta -Pre
or
Install-Package PactNet.Linux.x64 -Version 2.0.16-beta -Pre
Fixing the default log and pact dir values so that it is correctly generated based on the build directory
Fixes
NOTE: This is no longer listed in nuget
Adding support for a custom header in the verifier. See https://github.com/SEEK-Jobs/pact-net/issues/104 for details.
Fixes
NOTE: This is no longer listed in nuget
Adding support for a custom header in the verifier. See https://github.com/SEEK-Jobs/pact-net/issues/104 for details.
Features
NOTE: This is no longer listed in nuget
Updating to latest pact-ruby-standalone core (1.4.4)
Changes
NOTE: This is no longer listed in nuget
Adding build target condition to not run chmod on windows when a unix package is installed
Tweaks
NOTE: This is no longer listed in nuget
Fixing the default log and pact directory on .net standard
Tweaks
NOTE: This is no longer listed in nuget
Correctly resolving assembly directory on non windows platforms
Bug Fixes
Install-Package PactNet -Version 2.0.9-beta -Pre
Adding the platform specific packages
Features
Install-Package PactNet -Version 2.0.8-beta -Pre
Updating to the new Pact Standalone Core to 1.1.2
Tweaks
Install-Package PactNet -Version 2.0.7-beta -Pre
Adding support for .netstandard/.net core https://github.com/SEEK-Jobs/pact-net/pull/101. Currently PactNet will only still run on windows, but this g
Features Added
Thanks to @adamrodger for adding this!
Bug Fixes
Install-Package PactNet -Version 2.0.6-beta -Pre
Adding support for optionally publishing provider verification results to a Pact broker
Features Added
Thanks to @iamdavidfrancis for adding this feature!
Install-Package PactNet -Version 2.0.5-beta -Pre
Adding support for matchers in Path and Query on the request object
Features Added
** Tweaks **
Install-Package PactNet -Version 2.0.4-beta -Pre
Properly setting the pact broker credentials when supplied to the provider verifier with a broker url
Bug Fixes
Features Added
Install-Package PactNet -Version 2.0.3-beta -Pre
Fixes exception thrown if any of the Ruby standalone core environment variable are already set. See https://github.com/SEEK-Jobs/pact-net/issues/95
Bug Fixes
Thanks @JeanmarcLaiAqovia for the fix
Install-Package PactNet -Version 2.0.2-beta -Pre
One column per quarter.