简体   繁体   English

UWP 使用 Windows 桌面扩展在提交到存储时在启动时崩溃

[英]UWP using Windows Desktop Extension Crashes at Launch when Submitting to Store

I am having troubles getting my app accepted by the Microsoft Store.我无法让我的应用被 Microsoft Store 接受。 My app has the following properties:我的应用程序具有以下属性:

  1. Minimum Windows 10 version: 10.0.17763最低 Windows 10 版本:10.0.17763
  2. Maximum Windows 10 version: 10.0.17763最大 Windows 10 版本:10.0.17763
  3. References Windows Desktop Extensions for UWP version: 10.0.17763参考 Windows 桌面扩展 UWP 版本:10.0.17763
  4. Uses capability: runFullTrust (for good measure, I always check if the required API is present whenever I call the FullTrustProcessLauncher)使用功能:runFullTrust(为了更好地衡量,我总是检查所需的 API 是否存在,每当我调用 FullTrustProcessLauncher 时)
  5. Desktop component uses.Net Framework 4.6.1桌面组件使用.Net Framework 4.6.1
  6. Supports Multi-Instance支持多实例

I have already tried debugging my app in my local machine using Debug and Release configurations with no problems.我已经尝试使用调试和发布配置在本地机器上调试我的应用程序,没有任何问题。 I have also tried sideloading it to other PCs with no problems either.我也试过将它侧载到其他电脑上,也没有问题。 What might be the cause of the crash when I try submitting it to the store?当我尝试将其提交到商店时,崩溃的原因可能是什么?

If you need more info, would gladly give them if necessary.如果您需要更多信息,如有必要,我们很乐意提供。

Additional Info (Store Certification Error)附加信息(商店认证错误)

App Policies: 10.4.2 Usability - App Crashes or Freezes应用程序策略:10.4.2 可用性 - 应用程序崩溃或冻结

Notes To Developer开发者须知

Unfortunately, we can't test the app, because the app crashes at launch.不幸的是,我们无法测试该应用程序,因为该应用程序在启动时崩溃。

Tip: A Windows app may run flawlessly during development and testing, but after submitting it for certification testing, the app may crash or perform unexpectedly.提示:Windows 应用程序可能在开发和测试期间完美运行,但在提交进行认证测试后,应用程序可能会崩溃或意外执行。 Along these same lines, your app may not perform as expected after publication.同样,您的应用在发布后可能无法按预期运行。 You can contact Developer Support at http://aka.ms/storesupport if you need assistance with troubleshooting.如果您在故障排除方面需要帮助,可以通过http://aka.ms/storesupport联系开发人员支持。

Tested Devices: Acer Iconia W700, Acer Switch 3, (Win 10 S) Microsoft Surface Laptop, High Performance Desktop测试设备:Acer Iconia W700、Acer Switch 3、(Win 10 S) Microsoft Surface 笔记本电脑、高性能台式机

The workaround is to package the App using Visual Studio 2019. It seems that WinUI is having troubles when paired with the Packaging project.解决方法是 package 使用 Visual Studio 2019 的应用程序。似乎 WinUI 在与 Packaging 项目配对时遇到了问题。 I just hoped that this was documented as I spent months trying to solve this problem.我只是希望这被记录下来,因为我花了几个月的时间试图解决这个问题。 Thank you to everyone who helped me.感谢所有帮助过我的人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM