Find ZipArchive.CreateEntry with CompressionLevel (bit flag change)

Proprietary

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.

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

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.