← All recipes
Moderne licensed

Find Icon.ToBitmap usage (PNG-frame behavior change)

Recipe IDOpenRewrite.Recipes.CSharp.Migration.Dotnet.NetFramework.FindIconToBitmapPngFramesArtifactOpenRewrite.Recipes.CSharp.Migration.Dotnet

Icon.ToBitmap succeeds on icons containing PNG frames when retargeting to .NET Framework 4.6 (previously threw ArgumentOutOfRangeException; Switch.System.Drawing.DontSupportPngFramesInIcons to restore throwing). Review Icon.ToBitmap usage.

Single recipesearchdotnetnet-frameworkdrawingProprietary

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.NetFramework.FindIconToBitmapPngFrames

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

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