← All recipes
Moderne licensed

Find AesGcm constructor without tag size (SYSLIB0053)

Recipe IDOpenRewrite.Recipes.CSharp.Migration.Dotnet.Net8.FindAesGcmOldConstructorArtifactOpenRewrite.Recipes.CSharp.Migration.Dotnet

Finds new AesGcm(key) constructor calls without an explicit tag size parameter. In .NET 8, the single-argument constructor is obsolete (SYSLIB0053). Use new AesGcm(key, tagSizeInBytes) instead.

Single recipesearchdotnetnet8cryptographyProprietary

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.Dotnet.Net8.FindAesGcmOldConstructor

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

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