[
  {
    "Id": "467470",
    "ThreadId": "219481",
    "Html": "I'm trying to use dotnetziplib in a Windows Phone 7 project, but (with the Beta WP7 build tools) I am being told that I can't add a reference to the DLL because it isn't a Windows Phone assembly.  Is everyone seeing this problem? (or is it just a something screwy with my setup?).  If it's a general problem, is there a solution out there? (for instance a WP7-compatible build of the DLL)\r\nThanks.",
    "PostedDate": "2010-07-14T14:25:29.81-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "481766",
    "ThreadId": "219481",
    "Html": "<p>I've just added the Compact Framework version (Ionic.Zip.CF.dll)&nbsp;to a project without seeing this error.</p>\r\n<p>I'll report back if I can actually get it working.</p>",
    "PostedDate": "2010-08-18T02:39:22.493-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "481810",
    "ThreadId": "219481",
    "Html": "This seems to work Ok, but doesn't support extracting a multi-part/file zip from isolated storage. Whichi is what I was trying to do. :(",
    "PostedDate": "2010-08-18T05:11:53.9-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "482685",
    "ThreadId": "219481",
    "Html": "I can't recall now, whether spanned zip capability is included in the CF version of the library, and I'm not able to look at the code or the doc at the moment to find out.  Check and see.  Of it IS supported, then pls post details of what does t work. Thanks.\r\n",
    "PostedDate": "2010-08-20T03:56:27.12-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "562082",
    "ThreadId": "219481",
    "Html": "\r\n<p>HI,</p>\r\n<p>&nbsp;</p>\r\n<p>i am trying to unzip files in WP7 but i can't import the dll since is not&nbsp;Windows Phone assembly. were you able to do this?</p>\r\n<p>&nbsp;</p>\r\n<p>Thanks</p>\r\n",
    "PostedDate": "2011-02-07T10:09:35.44-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "562165",
    "ThreadId": "219481",
    "Html": "You need a version of the DLL that has been built for WP7. You'll have to build one from the source files; I spent some time doing that but got bored before I got it working. Instead, I used SharpZipLip (attached). By the way - you do always have the alternative\r\n of using the WP7 built-in ZIP extractor, Application.GetResourceStream(). Though for that, you do need to know the name of the file you're looking for.<br>\r\n<br>\r\nJim<br>\r\n<br>\r\nOn 07/02/2011 18:09, joe77 wrote:\r\n<blockquote type=\"cite\">\r\n<p>From: joe77</p>\r\n<div id=\"x_x_ThreadNotificationPostBody\">\r\n<p>HI,</p>\r\n<p></p>\r\n<p>i am trying to unzip files in WP7 but i can't import the dll since is not Windows Phone assembly. were you able to do this?</p>\r\n<p></p>\r\n<p>Thanks</p>\r\n</div>\r\n</blockquote>\r\n",
    "PostedDate": "2011-02-07T12:05:09.86-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "925267",
    "ThreadId": "219481",
    "Html": "<p>The problem with using SharpZipLib is it is released under the GPL (with an exception that allows the binary to be redistributed). GPL components are not allowed in applications released on the Windows Marketplace.</p>\r\n<p>Some internet opinion suggests that the specified exception to the GPL means that it would be allowed, but I had our legal department review the Marketplace agreement and the SharpZipLib license, and they thought that it would not be allowed. In any case, to play it safe, we decided not to use SharpZipLib.</p>\r\n<p>It isn't too hard to get DotNetZip compiled and working for Windows Phone - the steps I followed to get it working for me:</p>\r\n<ul>\r\n<li>Download the full source. Extract just the directories you need (BZip2, CommonSrc, Zip, Zlib).</li>\r\n<li>Create a new Windows Phone 7.1 project. Copy all the files from the Zip CF project into this new project.</li>\r\n<li>Define the NETCF constant on the new project build page (for both Debug and Release)</li>\r\n<li>On ZipFile, create a new static member with type IsolatedStorageFile, and initialize it to the application's isolated storage</li>\r\n<li>Replace all the File operations with isolated storage operations e.g.<br />\r\n<ul>\r\n<li>File.Open --&gt; ZipFile.IsoStorage.OpenFile</li>\r\n<li>File.Delete --&gt; ZipFile.IsoStorage.DeleteFile</li>\r\n<li>File.Exists --&gt; ZipFile.IsoStorage.FileExists</li>\r\n</ul>\r\n</li>\r\n</ul>\r\n<p>Hope this helps anyone trying the same thing.</p>\r\n<p>Pete</p>",
    "PostedDate": "2012-10-11T07:39:49.357-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "925295",
    "ThreadId": "219481",
    "Html": "<p>Oh yes, and I had to replace all the IBM text encodings with UTF8.</p>\r\n<p>Pete</p>",
    "PostedDate": "2012-10-11T08:03:31.823-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "938879",
    "ThreadId": "219481",
    "Html": "\r\n<p>The IBM text encoding is the default used in ZIPs for filenames I think. Using UTF8 means that for example Windows Vista/7 zipped folders won't be able to open those zip files to navigate in them (in case you care about that)</p>\r\n",
    "PostedDate": "2012-11-08T17:00:44.817-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]