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

Replace SharpCompress with System.IO.Compression #44

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

otykier
Copy link

@otykier otykier commented May 3, 2024

This PR removes the SharpCompress dependency, relying instead on System.IO.Compression. With this change, LargerXlsx will no longer have any dependencies outside of .NET.

@salvois
Copy link
Owner

salvois commented May 3, 2024

Thanks for the PR @otykier !
Did you have any chance to test whether it works as expected with huge, ZIP64-enabled files? Last time I checked, both Excel and LibreOffice reported the files as corrupt.
Salvo

@otykier
Copy link
Author

otykier commented May 3, 2024

Oh, I did not, sorry. I just assumed everything would work since all unit tests passed, lol. I did test that the .xlsx files generated with this change can be opened in Excel. Haven't tried LibreOffice.

But come to think of it, I didn't even pass the ZIP64-flag on to the System.IO.Compression.ZipArchive class. There's not really a lot of configuration options in ZipArchive, and specifically, I don't see that there's an option regarding ZIP64-enabling? Do you know if there's a way to configure ZipArchive to use ZIP64?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants