Download Latest Version v6.0.0 source code.zip (728.8 kB)
Email in envelope

Get an email when there's a new version of NSubstitute

Home / v6.0.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-07-12 9.2 kB
v6.0.0 source code.tar.gz 2026-07-12 498.0 kB
v6.0.0 source code.zip 2026-07-12 728.8 kB
Totals: 3 Items   1.2 MB 3

:information_source: No changes from Release Candidate 1.

NSubstitute v6.0.0

From RC1 notes:

  • [NEW] ArgMatchers.Matching predicate matcher as an alternative to Is(Expression<Predicate<T>>. (.NET6 and above.)
  • [UPDATE] Improved support for custom argument matchers. Arg.Is now accepts arg matchers.
  • [UPDATE][BREAKING] Update target frameworks: .NET8, .NET Standard 2.0
  • [UPDATE][BREAKING] Remove legacy obsolete API
  • [UPDATE][BREAKING] Mark as obsolete api CompatArg with pre c# 7.0 support
  • [UPDATE][BREAKING] Nullability is enabled for public api for .NET 8+ TFMs
  • [UPDATE] Migrate documentation to docfx platform and update samples to NUnit 4
  • [NEW] Added NuGet Package README file.

Full change list

New Contributors

Thank you to our first time contributors!

Thanks also to @304NotModified and @Romfos for their continued support and contributions to this release.

Full Changelog: https://github.com/nsubstitute/NSubstitute/compare/v5.3.0...v6.0.0

Source: README.md, updated 2026-07-12