codegenomeproject
Search
MarketplaceModules
PackagesCLIMCP
Sign in
  1. Marketplace
  2. C#/.NET
  3. Migrate to .NET 8

Migrate to .NET 8

Proprietary

Migrate C# projects to .NET 8, applying necessary API changes. Includes all .NET 7 migration steps. See https://learn.microsoft.com/en-us/dotnet/core/compatibility/8.0.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net8.UpgradeToDotNet8
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net8.UpgradeToDotNet8

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.

Recipe
  1. Migrate to .NET 7
  2. Change .NET target framework
  3. Upgrade NuGet package version
  4. Upgrade NuGet package version
  5. Upgrade NuGet package version
  6. Upgrade NuGet package version
  7. Upgrade NuGet package version
  8. Ensure csproj attestation
  9. Change method name
  10. Change method name
  11. Change method name
  12. Change method name
  13. Change type
  14. Find legacy serialization constructors (SYSLIB0051)
  15. Find JsonSerializerOptions.AddContext usage (SYSLIB0049)
  16. Find formatter-based serialization types (SYSLIB0050/0051)
  17. Find Regex.CompileToAssembly usage (SYSLIB0052)
  18. Find AesGcm constructor without tag size (SYSLIB0053)
  19. Use ArgumentException.ThrowIfNullOrWhiteSpace()
  20. Use ArgumentOutOfRangeException.ThrowIfGreaterThan()
  21. Use ArgumentOutOfRangeException.ThrowIfLessThan()
  22. Use ArgumentOutOfRangeException.ThrowIfZero()
  23. Find DateTime.Now/UtcNow usage (TimeProvider in .NET 8)
  24. Find ToImmutable*() that could use Frozen collections
© Moderne, 2026
Recipe indexPrivacyTerms