I'm using the System.IO.Packaging namespace in my VS2005 application. The zip compression works fine for 1 or many files. The unzip though for some reason seems to only unzip one file. Initially I did this in vs2008 at home and it worked fine, but now at work with vs2005 it's only unzipping one of the files. Can you see anything that I might be doing wrong?
Public Sub UnzipArchive(ByVal zipFile As String, ByVal UnzipLocation As String)
If (Not zipFile Is Nothing And Not UnzipLocation Is Nothing) Then
Dim zipFilePackage As Package
zipFilePackage = ZipPackage.Open(zipFile, FileMode.Open, FileAccess.ReadWrite)
' Iterate through all the files in the collection
For Each contentFile As ZipPackagePart In zipFilePackage.GetParts()
CreateFile(UnzipLocation, contentFile)
Next
zipFilePackage.Close()
MessageBox.Sh ...
Go to the complete details ...