Find obsolete Form.OnClosing/OnClosed usage (WFDEV004)
Recipe ID
OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net10.FindFormOnClosingObsoleteArtifactOpenRewrite.Recipes.CSharp.Migration.DotnetFinds usage of Form.OnClosing, Form.OnClosed, and the Closing/Closed events. In .NET 10, these are obsolete (WFDEV004). Use OnFormClosing/OnFormClosed and FormClosing/FormClosed instead.
Single recipenet10searchdotnetwinformsProprietary
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.Net10.FindFormOnClosingObsoleteIf the recipe isn’t available locally, install it with:
mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet