---
title: Installation
description: Install AutoFixture 5.0.0-rc.1 from NuGet for .NET 8 and later test projects.
---

Add AutoFixture to your test project from NuGet. Pin the version so everyone on the team uses the same release.

## Prerequisites

- [.NET 8 SDK](https://dotnet.microsoft.com/download) or later
- An existing test project (xUnit.net 3, NUnit 4, or plain test class library)

## Install AutoFixture

Add the core package to your test project:

```xml
<PackageReference Include="AutoFixture" Version="5.0.0-rc.1" />
```

Or with the .NET CLI:

```bash
dotnet add package AutoFixture --version 5.0.0-rc.1
```

## Verify installation

After restore, confirm you can create a fixture and generate a value:

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

If this passes, AutoFixture is ready to use in your tests.

## Optional packages

| Package | When you need it |
|---------|------------------|
| [AutoFixture.Xunit3](/docs/integrations/xunit3) | xUnit.net 3 test projects |
| [AutoFixture.NUnit4](/docs/integrations/nunit4) | NUnit 4 test projects |
| [AutoFixture.AutoMoq](/docs/integrations/automoq) | Moq mocks |
| [AutoFixture.AutoNSubstitute](/docs/integrations/autonsubstitute) | NSubstitute substitutes |
| [AutoFixture.AutoFakeItEasy](/docs/integrations/autofakeiteasy) | FakeItEasy fakes |
| [AutoFixture.SeedExtensions](/docs/extensions/seed-extensions) | Seeded `Create` / `CreateMany` / `Freeze` overloads |
| [AutoFixture.Idioms](/docs/extensions/idioms) | Guard-clause and idiom assertions |

See the [integrations overview](/docs/integrations) and full [package list](/docs/reference/packages).

## Next steps

- [Introduction](/docs/get-started/introduction)
- [Your first test](/docs/get-started/first-test)
- [FAQ](/docs/reference/faq)
