Migrate to .NET Core 3.0

Proprietary

Migrate C# projects from .NET Core 2.x to .NET Core 3.0, applying necessary API changes for removed and replaced types. See https://learn.microsoft.com/en-us/dotnet/core/compatibility/3.0.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net3_0.UpgradeToDotNet3_0
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net3_0.UpgradeToDotNet3_0

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. Change .NET target framework
  2. Change .NET target framework
  3. Change .NET target framework
  4. Change .NET target framework
  5. Change .NET target framework
  6. Upgrade NuGet package version
  7. Upgrade NuGet package version
  8. Upgrade NuGet package version
  9. Upgrade NuGet package version
  10. Upgrade NuGet package version
  11. Change type
  12. Change type
  13. Change type
  14. Change type
  15. Change type
  16. Change type
  17. Remove NuGet package reference
  18. Remove NuGet package reference
  19. Remove NuGet package reference
  20. Add framework reference
  21. Add NuGet package reference when namespace is used
  22. Add NuGet package reference when namespace is used
  23. Remove MSBuild property
  24. Remove MSBuild property
  25. Remove DotNetCliToolReference
  26. Ensure csproj attestation
  27. Change method name
  28. Change method name
  29. Change method name
  30. Replace UseIdentity() with UseAuthentication()
  31. Use HttpContext authentication extensions
  32. Use GetExternalAuthenticationSchemesAsync()
  33. Remove method invocations
  34. Remove method invocations
  35. Remove method invocations
  36. Remove method invocations
  37. Replace PlatformServices with AppContext
  38. Find Newtonsoft.Json usage
  39. Find HttpContext.Authentication usage (removed in ASP.NET Core 3.0)
  40. Find synchronous IO usage (disabled in ASP.NET Core 3.0)
  41. Find UseMvc/AddMvc usage (replaced in ASP.NET Core 3.0)
  42. Find WebHostBuilder/WebHost.CreateDefaultBuilder usage (replaced in ASP.NET Core 3.0)
  43. Find CompactOnMemoryPressure usage (removed in ASP.NET Core 3.0)
  44. Find IConnectionAdapter usage (removed in ASP.NET Core 3.0)
  45. Find obsolete localization APIs (ASP.NET Core 3.0)
  46. Migrate ApiController to ControllerBase
  47. Find SpaServices/NodeServices usage (obsolete in ASP.NET Core 3.0)