microsoft / AppModelSamples

Sample code for AppModel features
MIT License
200 stars 102 forks source link

SparsePackages/PhotostoreDemo Loops Infinitely #28

Closed jerichoi224 closed 2 years ago

jerichoi224 commented 2 years ago

I have worked through the instruction to figure out how Sparse Package works so that I can add my own item to the Win11 Context Menu. But I'm stuck with giving identity to a non-packaged app.

I followed all instructions.

  1. made and registered certificate.
  2. built msix and signed it with certificate.
  3. changed PhotoStoreDemo App Startup.cs so that externalLocation and sparsePkgPAth is correct,

Below is the log of when I execute PhotoStoreDemo.exe It says registration succeeded but once it restarts, it fails to find the package identity again. Could I get any help in why this might be happening?

image

jerichoi224 commented 2 years ago

Realized this was because I changed the AppManifest.xml, but not the PhotoStoreDemo.exe.manifest. Just in case anyone struggles with same issue