2014-09-28 51 views
0

我想解壓縮文件使用StreamUtils ......所以我用SharpZipLib ..
我使用這些庫:
不能在MonoDevelop中

using System; 
    using Gtk; 
    using ICSharpCode.SharpZipLib.Core; 
    using ICSharpCode.SharpZipLib.Zip; 
    using System.IO; 

而對於減壓:

using (FileStream streamWriter = File.Create(fullZipToPath)) { 
       StreamUtils.Copy(zipStream, streamWriter, buffer); 
      } 

,但我得到這個錯誤:

the name StreamUtils doesn't exist in the current context 

我錯過了什麼庫?

+0

你從哪裏確定了這段代碼? – knocte 2014-10-01 15:34:56

回答

1

的舊版本,我有同樣的問題,它採用流..沒能解決,但在檢查中存在的方法,我發現一個很有趣的一個是CreateZip方法,它允許你創建zip壓縮文件。
你必須指定目標文件夾和源文件夾以使用方法

-1

您使用ICSharpCodeLib