Exemplo n.º 1
0
 internal static void InitializeManifest()
 {
     if (_instance == null)
     {
         _instance = new AppxManifest();
         var x      = Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync("AppxManifest.xml").AsTask().Result;
         var stream = x.OpenReadAsync().AsTask().Result;
         var root   = XElement.Load(XmlReader.Create(stream.AsStreamForRead()));
         _instance.Package = new InternalPackage(root);
     }
 }
Exemplo n.º 2
0
 internal static void InitializeManifest()
 {
     if (_instance == null)
     {
         _instance = new AppxManifest();
         var x = Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync("AppxManifest.xml").AsTask().Result;
         var stream = x.OpenReadAsync().AsTask().Result;
         var root = XElement.Load(XmlReader.Create(stream.AsStreamForRead()));
         _instance.Package = new InternalPackage(root);
     }
 }