DotNetZip附带调试器崩溃,但其他方式正常

时间:2014-02-14 18:14:40

标签: c# debugging dotnetzip

DotNetZip在以下代码中崩溃:

        using (ZipFile zipFile = File.Exists(zipFilePath) ? ZipFile.Read(zipFilePath) : new ZipFile(zipFilePath))
        {
            zipFile.UpdateEntry(zipEntryName, content);
            zipFile.Save();
        }

使用:

System.IO.IOException : Cannot create a file when that file already exists.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalMove(String sourceFileName, String destFileName, Boolean checkHost)
at Ionic.Zip.ZipFile.Save()

在调试模式下附加了调试器,但是在未附加调试器时它可以正常工作。我该如何解决?

0 个答案:

没有答案
相关问题