I've followed the instructions but can't get this guide to work https://learn.microsoft.com/en-us/windows/uwp/monetize/in-app-purchases-and-trials#testing.
When I try StoreContext::GetAssociatedStoreProductsAsync
and StoreContext::GetStoreProductForCurrentAppAsync
I get the error code 0x803F6107 just like this question I'm unable to get a proper StoreContext.
If you do not associate your project with an app in the Store, the StoreContext methods set the ExtendedError property of their return values to the error code value 0x803F6107. This value indicates that the Store doesn't have any knowledge about the app.
When I try to debug my project (as per step 5 of the guide) I get this error message:
DEP0700: Registration of the app failed. [0x80073CF3] Windows cannot install package 66MyApp.MyApp_1.0.7.0_x86__2zbdsnss4mwk0 because a different package 66MyApp.MyApp_1.0.7.0_neutral_~yqhzh56ke71nw with the same name is already installed. Remove package 66MyApp.MyApp_1.0.7.0_neutral~_yqhzh56ke71nw before installing.
Must the package deployed from visual studio be the same as that downloaded from the store for this to work?