Find obsolete WebHostBuilder/IWebHost/WebHost usage (ASPDEPR004/ASPDEPR008)

Proprietary

Finds usages of WebHostBuilder, IWebHost, and WebHost which are obsolete in .NET 10. Migrate to HostBuilder or WebApplicationBuilder instead.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net10.FindWebHostBuilderObsolete
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net10.FindWebHostBuilderObsolete

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