如何传递具有 "Restricted namespace" 的 UWP 应用程序的 "Windows App Certification Kit - Test"?

How to pass "Windows App Certification Kit - Test" of a UWP app which has "Restricted namespace"?

根据 Show Confirm Dialog When User Close UWP App,我在我的 UWP 应用程序中使用了命名空间“rescap”。

<Package
  xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
  xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
  xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
  xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
  IgnorableNamespaces="uap mp rescap">
  ......
  <Capabilities>
    <Capability Name="internetClientServer"/>
    <Capability Name="privateNetworkClientServer"/>
    <Capability Name="internetClient"/>
    <rescap:Capability Name="confirmAppClose" />
  </Capabilities>
</Package>

但是现在我无法通过“Windows App Certification Kit - Test”

如何在不删除此“受限命名空间”的情况下通过此测试?

How can i pass this test without removing this "Restricted namespace"?

恐怕你不能通过删除 Restricted 命名空间的测试。从此 document 受限功能,需要 Microsoft Store 提交的批准 and/or 通常仅适用于 Microsoft 和某些合作伙伴。 此错误不会影响您的构建一个程序包,但是当你发布应用商店时,你必须在应用提交过程中提供信息才能获准将应用发布到 Microsoft Store。

更多信息请参考Restricted capabilities