Hi,
Awesome library! Got up and running in seconds - you've certainly led we customers into the "Pit of Success." :)
This may be already known, but I encountered runtime TypeInitializationException(s) when using types (such as ZipFile and ZipEntry) in ZipSL 1.9.1.8 from with a Silverlight application. After building and running from source, it was clear that the problem
was related to the static type construction at lines such as:
AlternateEncoding = System.Text.Encoding.GetEncoding("IBM437");
Appears this encoding is not one of the
four supported encodings in SL4. I was able to avoid the issue by altering the behavior where necessary with preprocessor directives, for example:
#if SILVERLIGHT
AlternateEncoding = System.Text.Encoding.GetEncoding("utf-8");
#else
AlternateEncoding = System.Text.Encoding.GetEncoding("IBM437");
#endif
I was able to do this to the point where my use cases were covered; would be happy to submit a patch if I had some guidance on the most appropriate strategy for dealing with this.
Yours,
David
Comments: ** Comment from web user: KeithW **
Just adding some support for this patch, would love to get it in the next release.