---
title: Compatibility
description: Supported .NET versions and package lines for AutoFixture v5 and v4.
---

## v5 (recommended)

| Component | Version | TFM (target framework moniker) |
|-----------|---------|--------------------------------|
| AutoFixture | 5.0.0-rc.1 | netstandard2.0 |
| AutoFixture.Xunit3 | 5.0.0-rc.1 | net8.0 |
| AutoFixture.NUnit4 | 5.0.0-rc.1 | net8.0 |
| AutoFixture.AutoMoq | 5.0.0-rc.1 | netstandard2.0 |
| AutoFixture.AutoNSubstitute | 5.0.0-rc.1 | netstandard2.0 |
| AutoFixture.AutoFakeItEasy | 5.0.0-rc.1 | net8.0 |
| AutoFixture.SeedExtensions | 5.0.0-rc.1 | net8.0 |
| AutoFixture.Idioms | 5.0.0-rc.1 | net8.0 |
| Test projects | — | **net8.0** or later recommended |

Xunit3, NUnit4, AutoFakeItEasy, SeedExtensions, and Idioms require a **net8.0+** test project. Core AutoFixture, AutoMoq, and AutoNSubstitute also work from netstandard2.0 consumers.

Verify restore:

```csharp
var fixture = new Fixture();
var value = fixture.Create<int>();
Assert.NotEqual(default, value);
```

## v4 (maintenance)

AutoFixture 4.18.1 targets older test frameworks (xUnit 2, NUnit 3, .NET Framework 4.5.2). Use v4 packages only when you cannot upgrade test projects yet.

## Mixing versions

Do not mix v4 and v5 AutoFixture packages in the same test project. Pin one line across core and extension packages.

See [v4 to v5 migration](/docs/reference/v4-to-v5-migration) and the full [package list](/docs/reference/packages).
