Ionic.Zip库无法提取.rar文件C# [英] Ionic.Zip library unable to extract .rar file C#
问题描述
我正在尝试使用.net zip库(Ionic.Zip.dll)提取.rar文件。执行以下代码时出现错误 无法将其读取为zipfile ;
I am trying to extract .rar file using .net zip library (Ionic.Zip.dll). I got error "cannot read that as a zipfile" while executing following code;
using (ZipFile zip1 = ZipFile.Read("E:\\APPS\\package.rar")){
}
我知道该错误是不言自明的,但Ionic.Zip的文档称该错误可用于提取.rar文件。有任何想法吗?
I know the error is self explanatory but documentation of Ionic.Zip says that it can be used to extract .rar files. Any ideas?
推荐答案
好吧,我在描述中找不到 DotNetZip
可以提取 rar
文件。他可以提取使用 WinRAR
创建的 zip
,但无人注意 rar
Well, I not found anywhere in description that DotNetZip
can extract rar
files. He can extract zip
created with WinRAR
but nowhere notice rar
file can be extracted.
DotNetZip-在C#中压缩和解压缩, VB,任何.NET语言
但是,有一些有趣的东西(链接下面):
But, there is something interesting (link bellow) :
SharpCompress-用于RAR,7Zip,Zip,Tar,GZip,BZip2的完全本机C#库
这篇关于Ionic.Zip库无法提取.rar文件C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!