public void WriteTest() { var pkg = new Package(); pkg.Meta.Add("version", "1.0.0.1"); pkg.Meta.Add("Name", "HelloWorldPackage"); pkg.AddRessource("Ionic.Zip.xml", File.ReadAllBytes(@".\Ionic.Zip.xml")) .AddXaml("hello.xaml", "<Button>click Me!!!</Button>"); PackageWriter.Save("test.xpkg", pkg); }