← All recipes
Moderne licensed

Find ZipArchive.CreateEntry with CompressionLevel (bit flag change)

Recipe IDOpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.FindZipArchiveCompressionLevelArtifactOpenRewrite.Recipes.CSharp.Migration.Dotnet

Finds ZipArchive.CreateEntry() and ZipFileExtensions.CreateEntryFromFile() calls with a CompressionLevel parameter. In .NET 9, the CompressionLevel value now sets general-purpose bit flags in the ZIP central directory header, which may affect interoperability.

Single recipesearchdotnetcompressionnet9Proprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.FindZipArchiveCompressionLevel

If the recipe isn’t available locally, install it with:

mod config recipes nuget install OpenRewrite.Recipes.CSharp.Migration.Dotnet