This project is read-only.

WP7 support

Mar 25, 2011 at 2:17 AM

I want to use it in a Windows Phone 7 it supported?


Thanks a lot


Mar 25, 2011 at 1:37 PM

Hmm, I don't know.  Are there special requirements for building .net apps on WP7?  I don't have a Windows Phone to try it on. I last built an app with DotNetZip on Windows Mobile 6, and it worked fine.


Mar 25, 2011 at 1:53 PM

To develop for WP7 you must use a subset of Silverlight framework and compile your code against that version of the .NET framework. Not all API available in Silverlight 4 are available in Silverlight for Windows Phone.


So it depends on what API of the .NET framework you use.

Jun 15, 2011 at 10:20 PM

I successfully compiled a subset of the Zlib: Crc32.cs, Deflate.cs, GZipStream.cs, Inflate.cs, InfTree.cs, Tree.cs, Zlib.cs, ZlibBaseStream.cs, ZlibCodec.cs and ZlibContants.cs.

I created a new Windows Phone Class Library.

The only change I had to done was to preprocessor conditions: adding "&& !SILVERLIGHT" to all "#if !NETCF".

I needed the GZipStream class for deflating a file created by an external application.

Jun 15, 2011 at 10:26 PM

Great news! Thanks for the support! :)