Exclude a reviewed redundant Compression package from .NET 10
ProprietaryConditions plain System.IO.Compression references in one explicitly reviewed SDK project so net10.0 uses the shared framework. Preserves references on other targets and leaves custom reference metadata, existing conditions and unreviewed projects unchanged. Standalone opt-in recipe.
OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net10. ExcludeRedundantCompressionForNet10Required
Exact captured repository-relative project path; no globs.
Confirm that this project uses the framework Compression implementation on net10.0 and does not require package-specific assets or build behavior. Review imported policy and every retained host.
Optional
For a versionless reference, confirm that its complete captured central/imported version policy resolves System.IO.Compression 4.3.0 without custom assets. Required in addition to dependency review; no central version is inferred.
Restore the final graph after the edit. Disable only for an intermediate step followed by EnsureCsprojAttestation.
mod run . --recipe= OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net10. ExcludeRedundantCompressionForNet10 \
-P ProjectPath= tests/ ConsoleTestBaseline/ ConsoleTestBaseline. csproj \
-P CompressionDependencyReviewed= falseInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.