← All recipes
Moderne licensed

Target of [DependsOn] should exist

Recipe IDOpenRewrite.Recipes.CSharp.CodeQuality.Wpf.FindDependsOnTargetMissingArtifactOpenRewrite.Recipes.CSharp.CodeQuality

[DependsOn(name)] names its target as a string, so a missing property is only discovered when XAML is loaded — and then only as an ordering that quietly does not happen. Flags the attribute when no property of that name 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.FindDependsOnTargetMissing

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

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