Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is class ZipFile?! #7

Open
RouR opened this issue Jun 20, 2015 · 4 comments
Open

Where is class ZipFile?! #7

RouR opened this issue Jun 20, 2015 · 4 comments

Comments

@RouR
Copy link

RouR commented Jun 20, 2015

See documentation http://dotnetzip.codeplex.com/ first example of use:

using (ZipFile zip = new ZipFile())
 {
     // add this map file into the "images" directory in the zip archive
     zip.AddFile("c:\\images\\personal\\7440-N49th.png", "images");
     // add the report into a different directory in the archive
     zip.AddFile("c:\\Reports\\2008-Regional-Sales-Report.pdf", "files");
     zip.AddFile("ReadMe.txt");
     zip.Save("MyZipFile.zip");
 }

This is not working in your fork.

@robertmclaws
Copy link
Collaborator

@RouR This is not a port of DotNetZip to a PCL. This is a port of the Zlib library (http://zlib.net) on which DotNetZip is based. So you cannot use the code on the DotNetZip page when using this library, it is for lower-level compression algorithms only. Sorry!

@RouR
Copy link
Author

RouR commented Jun 22, 2015

But you using namespace Ionic.Zlib
I will try to describe the problem. My project used DotNetZip library, and Google.Api which reference to this Zlib.Portable. This creates a conflict between same type in same namespaces but in different packages.

@robertmclaws
Copy link
Collaborator

I'm not sure what the solution is in that situation. I'll see if I can figure out how to do an assembly redirect or something, but no promises.

@robertmclaws robertmclaws reopened this Jun 22, 2015
@robertmclaws
Copy link
Collaborator

Maybe something like this solution would help, where you load the full DotNetZip library when the framework asks for Zlib.Portable?

http://stackoverflow.com/a/14260582

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants