Upgrade System.Text.Json with proven .NET 10 dependency policy
ProprietaryUpgrades existing System.Text.Json references to the reviewed 10.0.14 release only when the complete captured build proves supported literal targets and dependency policy. Preserves lower, conditional, imported, unknown or newer policy. Does not upgrade dependency pins: select and review explicit UpgradeNuGetPackageVersion steps separately before admission. Reuses the generic NuGet version/property/central planner; supplies no runtime compatibility claim.
OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net10. UpgradeSystemTextJsonForMigrationOptional
Confirm semantic review of existing direct dependency pins. Only already compatible literal or uniquely resolved property/central versions are admitted; lower or uncertain pins remain unchanged. Run explicit co-pin primitives in a separate reviewed pass first.
Refresh native metadata after the edit. Composite migrations may defer this to their final attestation.
mod run . --recipe= OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net10. UpgradeSystemTextJsonForMigrationInstall 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.
- Upgrade NuGet package version