0
我必须提取一个7z文件。UWP解压缩7Z文件
如果我使用:
Dim archive = Await localFolder.GetFileAsync("5.7z")
IO.Compression.ZipFile.ExtractToDirectory(archive.Path, localFolder.Path)
我收到一个错误:
An exception of type 'System.IO.InvalidDataException' occurred in System.IO.Compression.ZipFile.dll but was not handled in user code Additional information: End of Central Directory record could not be found.
(我知道......它只是对.zip
文件,但我想我会尝试)
我可以在UWP中解压7z文件吗?
我必须安装一个特定的.dll
吗?如果是这样,哪一个?
我试图安装SevenZipSharp
和SevenZipExtractor
和SevenZipSharp.Net45
,但在每种情况下安装都出错了。
任何人都可以帮助我吗?
您可能可以使用LZMA SDK,但您必须重新编译它才能自己锁定Windows Store:http://www.7-zip.org/sdk.html – Sunius
您看到的错误消息是什么? “错误”对于故障排除毫无用处。 – Chris
这是我使用IO.Compression.ZipFile.ExtractToDirectory(archive.Path,localFolder.Path)时发生的错误 System.IO.Compression.ZipFile.dll发生System.IO.Compression.ZipFile.dll类型的“System.IO.InvalidDataException”异常,但是未在用户代码中处理 其他信息:无法找到中央目录记录的结尾。 –