Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SharpZipLib v1.4 introduced breaking change #839

Closed
Bykiev opened this issue Aug 3, 2023 · 0 comments · Fixed by #840
Closed

SharpZipLib v1.4 introduced breaking change #839

Bykiev opened this issue Aug 3, 2023 · 0 comments · Fixed by #840
Labels
bug zip Related to ZIP file format

Comments

@Bykiev
Copy link
Contributor

Bykiev commented Aug 3, 2023

Describe the bug

ZipFile class constructor prior v1.4 had this constructor:
public ZipFile(string name)

In v1.4 optional parameter StringCodec was added which causing Method not found exception in other libraries built with older versions of SharpZipLib. It's a breaking change, instead of adding optional parameter you should create 2 separate constructors.

Updating SharpZipLib to v1.4 breaks NPOI: nissl-lab/npoi#1149

Reproduction Code

No response

Steps to reproduce

described

Expected behavior

No breaking change should be introduced

Operating System

Windows, macOS, Linux

Framework Version

.NET 7, .NET 6, .NET 5, .NET Core v3 and earlier, .NET Framework 4.x

Tags

ZIP

Additional context

No response

@Bykiev Bykiev added the bug label Aug 3, 2023
@github-actions github-actions bot added the zip Related to ZIP file format label Aug 3, 2023
Bykiev added a commit to Bykiev/SharpZipLib that referenced this issue Aug 3, 2023
piksel pushed a commit that referenced this issue Aug 4, 2023
* Fix ZipFile constructor breaking change

This PR fixes #839

* Fix another constructor too

* Do not change formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug zip Related to ZIP file format
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant