You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

WACK无法获取已批准API列表,UWP应用Supported API测试失败求助

UWP应用WACK认证:Supported API测试失败问题求助

我用C#.NET开发了一款UWP应用,完成测试后准备发布至微软应用商店,因此运行Windows App Certification Kit(WACK)进行认证。大部分测试都已通过,但Supported API测试始终失败,错误提示如下:

"The supported APIs test detected the following errors: Unable to get the list of approved APIs."

需要明确的是,这并非我使用了未批准API导致的问题——WACK看起来根本没有检查我应用里的API,因为它连「可使用的API列表」都无法获取。这种情况下它连测试的通过/失败标准都无法明确,我根本不知道该怎么通过这个测试。

我已经尝试过以下操作,但问题依然存在:

  • 开启/关闭VPN
  • 将Windows系统更新至最新版本
  • 以管理员模式或普通模式运行WACK

WACK输出的完整错误内容

FAILED - Supported APIs
Error Found: The supported APIs test detected the following errors:

Unable to get the list of approved APIs.

Impact if not fixed: Using an API that is not part of the Windows SDK
for Microsoft Store apps violates the Microsoft Store certification
requirements.

How to fix: Review the error messages to identify the API that is not
part of the Windows SDK for Microsoft Store apps. If the DLL listed is
an allowable redistributable from a NuGET package, SDK or other
toolkit, did you forget to add the DLL to your app? Please note, apps
that are built in a debug configuration or without .NET Native enabled
(where applicable) can fail this test as these environments may pull
in unsupported APIs. Retest your app in a release configuration, and
with .NET Native enabled if applicable. See the link below for more
information: [link]

注意:「How to fix」部分提示我要识别不属于Windows SDK的API,但错误信息里根本没指明任何具体API,完全无从下手。

应用及系统信息

  • 应用架构:x64
  • WACK版本:10.0.26100.1742
  • 系统版本:Microsoft Windows 10 Pro (10.0.19045.0)
  • 系统架构:x64

项目Windows SDK配置

- Target Version is Build 26100 
- Min version is Build 17763

我还尝试过调整项目的最低版本:把最低版本设为22000(Windows 11首个版本),但因为我使用的是Windows 10,WACK无法运行全部测试;也试过多种Windows 10的最低版本选项,最后还是用回了最初的17763。

请问该如何解决这个问题?

内容的提问来源于stack exchange,提问作者Kyle Humfeld

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.17 02:47:15