当我尝试使用DotNetZip解压缩zip文件时,我一直收到IOException: The process cannot access the file 'file path' because it is being used by another process
。但是该文件根本没有打开。
我的代码:
using (ZipFile zip = ZipFile.Read(pathNewVersion))
{
foreach(ZipEntry entry in zip.Entries)
{
Debug.WriteLine(entry.FileName);
entry.Extract(pathCustomer, ExtractExistingFileAction.OverwriteSilently);
}
}