I'm trying to use SharpZipLib under Windows Mobile 5.0 which has the Compact Framework v2.0 on it.
First off I couldn't just reference the SharpZipLib in my project because on deploy it would try and deploy all of the full .NET framework DLLs over to the device. So I opened up the SharpZipLib source in SharpDeveloper and changed the Target Framework to Compact Framework 2.0.
After a successful recompile it now deploys properly to the device but whenever I try to use FastZip I get a Type Load Exception which from what I can gather means that its for the wrong framework. Yet I had recompiled it for the compact framework.
Opening up the DLL in ILDASM gives me the following from the head of the manifest:
.assembly extern mscorlib
{
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
.ver 2:0:0:0
}
.assembly extern retargetable System
{
.publickeytoken = (96 9D B8 05 3D 33 22 AC ) // ....=3".
.ver 2:0:0:0
}
So the first one, B7...., is incorrect for mobile devices, while the second one, 96...., is the correct PKT for mobile devices.
What do I have to do to get SharpZipLib to work under the Compact Framework??
Thanks