Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using .Net framework 4.5 ,in that i used a dll System.Io.Compression.filesystem

while extracting the zipfile

i use the following code

ZipFile.ExtractToDirectory(destfile, filedirectory);

but its shows an ERROR as ZipFile is doesnt exist in the content

WARNING as:Warning 1 The primary reference "System.IO.Compression.FileSystem" could not be resolved because it has an indirect dependency on the framework assembly "System.IO.Compression, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.0,Profile=Client". To resolve this problem, either remove the reference "System.IO.Compression.FileSystem" or retarget your application to a framework version which contains "System.IO.Compression, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089".
Posted

Thanks for your answer Mr.Arnaldo Skywalker...

Actually that exact problem is I develop & build the application is Net Framework 4.0, then I implent the application is .Net Framework 4.5, So that is a problem. Now its working fine Friends.

Thanks & Regards,
G.Mariappan(A)Murugan
 
Share this answer
 
Try using a .dll from nuget. You only need to type nuget in Google and download a package for unzipping files.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900