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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Éric MoreauSenior .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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
Learn Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.