Skip to main content

xUnit.net is a developer testing framework, built to support Test Driven Development, with a design goal of extreme simplicity and alignment with framework features. Supports .NET Framework 4.7.2 or later, and .NET 8 or later. Installing this package installs xunit.v3.mtp-v2.

Total Downloads
34.6M
34,570,391
Published
Jul 17, 2026
Latest stable version

Install

.NET CLI
dotnet add package xunit.v3 --version 4.0.0-pre.154
Package Manager Console
Install-Package xunit.v3 -Version 4.0.0-pre.154
PackageReference
<PackageReference Include="xunit.v3" Version="4.0.0-pre.154" />

Frameworks

.NETFramework4.7.2 net8.0

Dependencies

xunit.v3.mtp-v2
.NETFramework4.7.2
[4.0.0-pre.154, 4.0.0-pre.154]
[4.0.0-pre.154, 4.0.0-pre.154]

Adoption guide

New xUnit.net test suites targeting supported modern .NET versions, or teams deliberately migrating to v3.

Unit Testing guide
Why it appears in the guide: The current xUnit.net package for modern .NET test projects, with its v3 test platform integration. Trade-off: v3 uses a different package and runner model than xUnit v2; check the migration guidance and CI adapter before standardizing.

This version is marked prerelease. Validate its API and upgrade path before production use.

Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.