Decompressing a Zip file

I am trying to find a means to unzip files in code.  I can find any number of code samples that work for .Net 4.5 but none for 3.5.  I am looking for an example
LVL 1
AlyantoAsked:
Who is Participating?
 
Éric MoreauConnect With a Mentor Senior .Net ConsultantCommented:
Since the release of the .Net Framework 3.0, we are now able to handle .zip files.  Microsoft provides the System.IO.Packaging class but it is so deeply hidden that most of us missed it. Check http://emoreau.com/Entries/Articles/2008/08/Introducing-SystemIOPackaging.aspx
0
 
AlyantoAuthor Commented:
CreateFilenameFromUri on line 4 in your code sample is claiming not to be declared.  I do have IO.Packaging imported so that is not the source of the problem.  Any suggestions are welcome.  

I am using framework 3.5 and due to the business reluctance to upgrade that is unfortunately my limit at the moment.
0
 
Éric MoreauSenior .Net ConsultantCommented:
as stated in "Setting the reference", add a reference to the “WindowBase”
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
AlyantoAuthor Commented:
WindowsBase has already been added which is why I was so surprised
0
 
Éric MoreauSenior .Net ConsultantCommented:
Wait a minute. This method is a private one available in the downloadable demo.
0
 
AlyantoAuthor Commented:
Massive cheesy grin here!  Many thanks Eric

/Aly
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.