开源压缩库。NET?开源、NET

2023-09-02 21:24:31 作者:過

有谁知道一个好的开源荏苒库.NET的?

Does anyone know of a good open-source zipping library for .NET?

推荐答案

SharpZipLib

对于有关内部GZIP实施意见和其他职位,他们的没有的相同的GZip不会创建所需的归档标题!;它只是为压缩和解一文件或流是有用的。

Regarding the comments and other posts about the internal gzip implementation, they are not the same! GZip does not create the header required for archiving; it is only useful for "zipping" one file or stream.

正确的ZIP压缩文件包含一个标题,列出所有的COM pressed文件,凡在COM pressed数据他们来了,因此,你需要的东西,使一个头。这意味着SharpZipLib,一是很多商业版本或者使用外部使用.NET绑定像7zip的东西。

Proper zip archives contain a header that list all compressed files and where in the compressed data they come and therefore you need something that makes a header. That means SharpZipLib, one of the many commercial versions or using something external with .NET bindings like 7zip.

刚上offchance有人想这样说:但我看到。广州文件在Linux中所有的时间 - 他们只是单个文件和名为.tar.gz 也不例外 - 焦油存档文件。该。广州是归档COM pressed。

Just on the offchance somebody wants to say this: "But I see .gz files in Linux all the time!" - they're just single files and .tar.gz is no exception - tar is the archive file. The .gz is that archive compressed.