在 windows 10 个名称空间受限的商店上发布应用
Publish App on windows 10 store with restricted namespace
我尝试在 windows 10 商店发布应用程序,但我无法通过 Windows 应用程序认证套件的测试:
Restricted Namespace Error encountered: The restricted namespace test
Detected the following errors: Restricted Namespace found:
Impact if not corrected: The Windows Store does not allow an
Application manifest to refer to restricted namespaces. How to fix it:
Removes restricted namespaces from the application manifest.
但是我使用受限的命名空间来使用 SMS 功能:
Xmlns: r = "http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
r: 能力名称 = "cellularMessaging" />
如何进行此更改才能发布?
您还必须在 Package.appxmanifest 文件中添加 rescap 命名空间 IgnorableNamespaces,如下所示。
<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="internetClient" />
<rescap:Capability Name="cellularMessaging" />
</Capabilities>
</Package>
添加功能时,请按以下顺序排列:'Capability'、'rescap:Capability'、然后'DeviceCapability',因为混合它们时似乎有问题。 (source)
请注意,应用认证测试可能会继续失败。您需要请求许可才能实际使用这些功能。
Special and restricted capabilities are intended for very specific
scenarios. The use of these capabilities is highly restricted and
subject to additional Store onboarding policy and review. Follow the
steps below to request access to a restricted capability before
submitting your app to the store.
- Determine if you are eligible to submit your app to the store with a
specific restricted capability by looking at the table below. If you
are not eligible, any requests you make will be denied.
- If you are eligible visit the Submitting an App support page.
- Set the problem type to App submission and certification and the category type to Submitting an app using a restricted capability.
- Include the capability you are requesting access to and include a reason for your request. If you do not provide all the information necessary, your
request will be denied. You may also be asked to provide more
information.
我尝试在 windows 10 商店发布应用程序,但我无法通过 Windows 应用程序认证套件的测试:
Restricted Namespace Error encountered: The restricted namespace test Detected the following errors: Restricted Namespace found: Impact if not corrected: The Windows Store does not allow an Application manifest to refer to restricted namespaces. How to fix it: Removes restricted namespaces from the application manifest.
但是我使用受限的命名空间来使用 SMS 功能:
Xmlns: r = "http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
r: 能力名称 = "cellularMessaging" />
如何进行此更改才能发布?
您还必须在 Package.appxmanifest 文件中添加 rescap 命名空间 IgnorableNamespaces,如下所示。
<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="internetClient" />
<rescap:Capability Name="cellularMessaging" />
</Capabilities>
</Package>
添加功能时,请按以下顺序排列:'Capability'、'rescap:Capability'、然后'DeviceCapability',因为混合它们时似乎有问题。 (source)
请注意,应用认证测试可能会继续失败。您需要请求许可才能实际使用这些功能。
Special and restricted capabilities are intended for very specific scenarios. The use of these capabilities is highly restricted and subject to additional Store onboarding policy and review. Follow the steps below to request access to a restricted capability before submitting your app to the store.
- Determine if you are eligible to submit your app to the store with a specific restricted capability by looking at the table below. If you are not eligible, any requests you make will be denied.
- If you are eligible visit the Submitting an App support page.
- Set the problem type to App submission and certification and the category type to Submitting an app using a restricted capability.
- Include the capability you are requesting access to and include a reason for your request. If you do not provide all the information necessary, your request will be denied. You may also be asked to provide more information.