← All recipes
Moderne licensed

Migrate xUnit NuGet dependencies to TUnit

Recipe IDOpenRewrite.Recipes.CSharp.Migration.TUnit.FromXUnit.MigrateXUnitDependenciesArtifactOpenRewrite.Recipes.CSharp.Migration.TUnit

Remove xUnit NuGet package references, add TUnit, and upgrade the target framework to at least .NET 9.

Composite recipetunitcsharptestingmigrationxunitProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe OpenRewrite.Recipes.CSharp.Migration.TUnit.FromXUnit.MigrateXUnitDependencies

If the recipe isn’t available locally, install it with:

mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.TUnit

Definition

This recipe runs the following recipes in order.