← All recipes
Moderne licensed

Target of [XamlSetTypeConverter] should exist and have correct signature

Recipe IDOpenRewrite.Recipes.CSharp.CodeQuality.Wpf.XamlSetTypeConverterTargetShouldExistArtifactOpenRewrite.Recipes.CSharp.CodeQuality

[XamlSetTypeConverter] names its handler as a string, so a missing method or a wrong signature is only discovered when XAML is loaded. Flags the attribute when no void Handler(object, XamlSetTypeConverterEventArgs) is reachable on the type.

Single recipecsharpcode-qualityProprietary

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.CodeQuality.Wpf.XamlSetTypeConverterTargetShouldExist

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

mod config recipes nuget install OpenRewrite.Recipes.CSharp.CodeQuality