I wish to know if there is any way to avoid to have a [Content_Types].xml file inside the zip file while using .net's ZipPackage class.
+1
A:
No.
Zip Packages are not (normal) Zip files. If you want to create (and especially if you want to read) normal Zip archives you will need an extra library, there is no support in the BCL.
See SharpZipLib (GPL) and DotNetZip
Henk Holterman
2010-09-20 09:31:37
@Henk: What do you mean by "normal" ? Is it not possible to create a ".zip" file using whatever is there inside .net framework ?
Kushal Waikar
2010-09-20 09:44:50
@Kushal: Package = Zip Archive + Structure. So you can read a Zip Package with WinZip, but you cannot read (all) Zip files with ZipPackage
Henk Holterman
2010-09-20 09:55:07
@Henk: I just wish to zip a single file. But I am not able to get rid of .xml file which gets embedded with the package.
Kushal Waikar
2010-09-20 10:05:46
The contents.xml is what makes it a package.
Henk Holterman
2010-09-20 10:12:25
@Henk: Yeps as you said "Package = Zip Archive + Structure"..
Kushal Waikar
2010-09-20 10:15:22