我已经将我的应用提交到Windows Store,并通过认证。根据测试说明:https://learn.microsoft.com/zh-cn/windows/uwp/monetize/in-app-purchases-and-trials#in-app-purchases-and-trials-using-the-windowsservicesstore-namespace,我已将应用发布为隐藏应用。 我还将应用程序关联到商店:
。 当我调试应用程序时,我从未得到过一个正确的StoreContext实例。我遇到了以下错误:
。 根据上面的文档链接,这是我的问题:如果您没有将项目与商店中的应用相关联,则StoreContext方法会将其返回值的ExtendedError属性设置为错误代码0x803F6107。此值表示商店不知道该应用程序。 我如何让我的应用程序(或Visual Studio)了解我的商店存在呢?
![enter image description here](https://istack.dev59.com/tb9ot.webp)
![enter image description here](https://istack.dev59.com/bjhtD.webp)