向应用程序提交应用程序时支持的API测试失败:此应用程序类型不支持api-ms-win-core-localization-l1-2-0.dll中的API FormatMessage。 System.Diagnostics.Tracing.dll调用此API [英] Supported API test failed on submitting app to the store: API FormatMessage in api-ms-win-core-localization-l1-2-0.dll is not supported for this application type. System.Diagnostics.Tracing.dll calls this API

查看:184
本文介绍了向应用程序提交应用程序时支持的API测试失败:此应用程序类型不支持api-ms-win-core-localization-l1-2-0.dll中的API FormatMessage。 System.Diagnostics.Tracing.dll调用此API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将应用程序提交到Windows应用商店我收到此错误:

Submitting app to Windows Store I received this error:

支持的API测试FAILED支持的API•发现错误:支持的API测试检测到以下错误:•API FormatMessage in此应用程序类型不支持api-ms-win-core-localization-l1-2-0.dll。 System.Diagnostics.Tracing.dll调用
此API。 •影响如果不修复:使用不属于Windows SDK for Windows Store应用程序的API会违反Windows应用商店认证要求。 •如何修复:查看错误消息以识别不属于Windows应用商店应用的Windows SDK
的API。请注意,在调试配置中构建的应用程序或未启用.NET Native的应用程序(如果适用)可能会使此测试失败,因为这些环境可能会引入不受支持的API。在发布配置中重新测试您的应用程序,并启用
.NET Native(如果适用)。有关详细信息,请参阅以下链接:Windows应用商店应用中Windows API的替代方案。

Supported API test FAILED Supported APIs • Error Found: The supported APIs test detected the following errors: • API FormatMessage in api-ms-win-core-localization-l1-2-0.dll is not supported for this application type. System.Diagnostics.Tracing.dll calls this API. • Impact if not fixed: Using an API that is not part of the Windows SDK for Windows Store apps violates the Windows Store certification requirements. • How to fix: Review the error messages to identify the API that is not part of the Windows SDK for Windows Store apps. 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: Alternatives to Windows APIs in Windows Store apps.

使用本地Windows App Cert Kit(版本10.0.14965.100) 测试成功通过即可。该应用程序是使用Visual Studio 2017 Enterprise编译的。

Using the local Windows App Cert Kit (version 10.0.14965.100) the test passed successfully. The App was compiled using Visual Studio 2017 Enterprise.

System.Diagnostics.Tracing.dll是一个.NET库,为什么它会失败?这似乎不是问题或我的代码。 Windows应用商店应用支持FormatMessage API:https://msdn.microsoft.com/en-us/library/windows/desktop/ms679351(v = vs.85).aspx

System.Diagnostics.Tracing.dll is a .NET library, so why it fails? It seems not an issue or my code. FormatMessage API is supported in Windows Store App: https://msdn.microsoft.com/en-us/library/windows/desktop/ms679351(v=vs.85).aspx

支持的最低客户

Windows  XP [桌面应用程序| Windows应用商店应用]

Windows XP [desktop apps | Windows Store apps]

推荐答案

同样在这里。

似乎与Visual Studio 2017有关。

Seems to be related to Visual Studio 2017.

完全相同的解决方案在2015年生成了有效的包。

The exact same solution produced valid packages in 2015.


这篇关于向应用程序提交应用程序时支持的API测试失败:此应用程序类型不支持api-ms-win-core-localization-l1-2-0.dll中的API FormatMessage。 System.Diagnostics.Tracing.dll调用此API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆