- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已将我的应用程序提交到 Windows 应用商店并通过了认证。根据测试说明:
我已将该应用发布为隐藏应用。我还将应用关联到应用商店:
当我调试我的应用程序时,我从未获得正确的 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.
我如何让我的应用程序(或 Visual Studio)了解我的商店状态?
最佳答案
我刚刚弄明白了。这些步骤必须完全按照以下顺序完成:
If your app is not yet published and available in the Store, make sure your app meets the minimum Windows App Certification Kit requirements, submit your app in Partner Center, and make sure your app passes the certification process. You can configure your app so it is not discoverable in the Store while you test it. Please note the proper configuration of package flights. Incorrectly configured package flights may be not be able to be downloaded.
Next, make sure you have completed the following:Write code in your app that uses the StoreContext class and otherrelated types in the Windows.Services.Store namespace to implementin-app purchases or trial functionality. If your app offers an add-onthat customers can purchase, create an add-on submission for your appin Partner Center. If you want to exclude or limit some features in atrial version of your app, configure your app as a free trial inPartner Center.
With your project open in Visual Studio, click the Project menu, point to Store, and then click Associate App with the Store. Complete the instructions in the wizard to associate the app project with the app in your Partner Center account that you want to use for testing.
If you have not done so already, install the app from the Store that you specified in the previous step, run the app once, and then close this app. This ensures that a valid license for the app is installed to your development device.
In Visual Studio, start running or debugging your project. Your codeshould retrieve app and add-on data from the Store app that youassociated with your local project. If you are prompted to reinstallthe app, follow the instructions and then run or debug your project.
我所做的是将第 3 步和第 4 步颠倒过来 👍 并且成功了!
关于uwp - 我无法获得正确的 StoreContext,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65023413/
我已将我的应用程序提交到 Windows 应用商店并通过了认证。根据测试说明: https://learn.microsoft.com/en-us/windows/uwp/monetize/in-ap
我正在开发一款适用于 UWP(通用 Windows 平台)的应用程序,可在 Windows 10 和 Xbox One 设备上使用。该应用程序是 single user application .我试
我是一名优秀的程序员,十分优秀!