Find obsolete Queryable.MaxBy/MinBy with IComparer<TSource> (SYSLIB0061)

Proprietary

Finds Queryable.MaxBy and Queryable.MinBy overloads taking IComparer<TSource> which are obsolete in .NET 10. Use the overloads taking IComparer<TKey> instead.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net10.FindQueryableMaxByMinByObsolete
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net10.FindQueryableMaxByMinByObsolete

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