Migrate to ASP.NET Core 3.0

Proprietary

Migrate ASP.NET Core 2.2 projects to ASP.NET Core 3.0, including endpoint routing, Generic Host, and System.Text.Json changes. See https://learn.microsoft.com/en-us/aspnet/core/migration/22-to-30.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.AspNetCore3.UpgradeToAspNetCore30
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.AspNetCore3.UpgradeToAspNetCore30

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

Recipe list

It runs these recipes, in this order.

  1. Migrate to ASP.NET Core 2.2
  2. Find UseMvc()/UseSignalR() calls
  3. Find IHostingEnvironment usage
  4. Find IApplicationLifetime usage
  5. Find WebHostBuilder usage
  6. Find AddMvc() calls
  7. Use LoggerFactory.Create(...) instead of new LoggerFactory()
  8. Find Newtonsoft.Json usage in ASP.NET Core