I am trying to save a XAP file, basically, as a zip file, and I can archive and save it, but does it add to many folders?
I am using the Ionic.Zip DLL to archive my XAP file.
The file is saved in my path, but when I open it, it has users of the folder, and then there is the Shaun folder and in this folder the Documents folder, in the FormValue folder, then aside there are my 3 files that I archived.
I need a Xap file only to contain 3 files that I have archived, and not all additional folders inside.
using (ZipFile zip = new ZipFile()) { // add this map to zip zip.AddFile("C://Users//Shaun//Documents//FormValue//" + property_details_locality_map); zip.AddFile("C://Users//Shaun//Documents//FormValue//data.xml"); zip.AddFile("C://Users//Shaun//Documents//FormValue//dvform.dvform"); zip.Save("C://Users//Shaun//Documents//FormValue//NewValuation.xap"); }
source share