处理ZIP文件没有第三方库在.NET 4.0中? [英] Handling Zip Files Without Third Party Lib in .NET 4.0?

查看:249
本文介绍了处理ZIP文件没有第三方库在.NET 4.0中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有3.5这里一个类似的问题:

There is a similar question for 3.5 here:

是否有一个内置的ZIP在.NET 3.5库?

这是推测,4.0将有它,但我找不到任何关于它的信息。如果没有,有没有人知道为什么不呢?好像这将是相当高的东西,包括支持就行了。

that speculated that 4.0 would have it, but I can't find any info about it. If not, does anyone know why not? Seems like it would be fairly high on the list of things to include support for.

推荐答案

不为4.0,但 ZipArchive 类被认为是下一个版本。您可以在 BCL团队博客。

Not for 4.0, but a ZipArchive class is being considered for the next version. You can find details about this on the BCL Team blog.

编辑:否则,假设它仍然可用,并根据您的内置高清(至少说到/来与Visual Studio),您可能能够使用J#类的zip文件,如本文中所描述:使用的J#类库中的Zip类对COM preSS文件和数据使用C#

Otherwise, assuming that it's still available, and depending on your definition of built in (at least it comes/came with Visual Studio), you might be able to use the J# classes to zip files as described in this article: Using the Zip Classes in the J# Class Libraries to Compress Files and Data with C#

EDIT2:虽然注意下面的意见,认为J#选项可能不是除非在某些特殊情况下正确的选择

Though note the comments below, that the J# option is probably not the right option except in certain unusual circumstances.

这篇关于处理ZIP文件没有第三方库在.NET 4.0中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆