← All recipes
Moderne licensed

Find DataObject usage (HTML clipboard now UTF-8)

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

DataObject.GetData retrieves HTML-format clipboard data as UTF-8 instead of ASCII when retargeting to .NET Framework 4.5.2. Remove any manual UTF-8 conversion workaround.

Single recipesearchdotnetwinformsnet-frameworkProprietary

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.FindDataObjectGetDataHtml

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

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