Add MarkupExtensionReturnType attribute

Proprietary

A MarkupExtension that overrides ProvideValue should be annotated with [MarkupExtensionReturnType(typeof(T))] so XAML tooling knows what the extension yields. Adds the attribute when the returned type can be determined from ProvideValue.

OpenRewrite.Recipes.CSharp.CodeQuality.Wpf.AddMarkupExtensionReturnTypeAttribute
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Wpf.AddMarkupExtensionReturnTypeAttribute

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.