Find WinRT interop usage (removed in .NET 5)
Recipe ID
OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net5.FindWinRTInteropArtifactOpenRewrite.Recipes.CSharp.Migration.DotnetFinds usages of WinRT interop types (WindowsRuntimeType, WindowsRuntimeMarshal, etc.) which were removed in .NET 5.
Single recipesearchdotnetinteropnet5Proprietary
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.Net5.FindWinRTInteropIf the recipe isn’t available locally, install it with:
mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet