Upgrade JSON packages with proven .NET 9 dependency policy
ProprietaryUpgrade existing System.Text.Json/System.Net.Http.Json references to reviewed 9.0.22 only when the complete captured build proves literal net8/9/10 targets and compatible dependency policy. Preserve older, conditional, imported, unknown or newer policy; do not co-upgrade dependency pins. Use the existing NuGet property/central planner, with final metadata refresh after both package steps. No general runtime compatibility claim.
OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net9. UpgradeJsonPackagesForMigrationOptional
Confirm semantic review of existing direct dependency pins. All relevant literal or uniquely resolved property/central pins and native metadata must already satisfy the reviewed closure; lower or uncertain pins remain unchanged. Perform any explicit co-pin pass separately.
Refresh native metadata once after both package steps. Composite migrations may defer this to their own final attestation.
mod run . --recipe= OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net9. UpgradeJsonPackagesForMigrationInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.