Modernize .NET Framework 4.8 project (SDK + PackageReference)

Proprietary

Migrates a classic .NET Framework 4.8 csproj that uses packages.config to SDK-style with <PackageReference> entries. Combines MigratePackagesConfigToPackageReference and ConvertClassicCsprojToSdk so the resulting project builds with dotnet build on non-Windows machines via the Microsoft.NETFramework.ReferenceAssemblies.Net48 targeting pack.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.NetFramework48.UpgradeToNetFramework48Sdk
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.NetFramework48.UpgradeToNetFramework48Sdk

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 packages.config to <PackageReference> (net48)
  2. Convert classic csproj to SDK-style (net48)