Find AesGcm constructor without tag size (SYSLIB0053)

Proprietary

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.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net8.FindAesGcmOldConstructor
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net8.FindAesGcmOldConstructor

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.