← All recipes
Moderne licensed

Target of [XamlSetMarkupExtension] should exist and have correct signature

Recipe IDOpenRewrite.Recipes.CSharp.CodeQuality.Wpf.XamlSetMarkupExtensionTargetShouldExistArtifactOpenRewrite.Recipes.CSharp.CodeQuality

[XamlSetMarkupExtension] 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, XamlSetMarkupExtensionEventArgs) 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.XamlSetMarkupExtensionTargetShouldExist

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

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