FormatMessage is not supported for this application type

北城余情 提交于 2019-12-10 11:32:30

问题


When running app certification on my app, I'm getting this error from supported apis.

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.

Is there something obvious that I'm missing? I'm not using anything from that namespace directly. If this is a 3rd party library calling something in System.Diagnostics.Tracing, is there a way to track down which one? I'm not referencing System.Diagnostics.Tracing directly in my app.


回答1:


For my app, I will get exactly this error if I unzip the .appxupload and use the file .appxbundle inside it to run App Cert Kit against, even though the same .appxupload will publish on store without issue. However, if I run Cert Kit against the .appxbundle in folder _Test generated by the same build, there will be no error reported. So I guess the .appxupload is really not intended to be installed outside of store.




回答2:


I had this problem as well after a string a successful submissions of the same app to the store. Through trial and error I found out that if I built the app in Release mode, and THEN created the packages for the store, everything worked. If the last build was in Debug mode, and then I flipped the configuration to "Release" (without building in Release) and then creating the package, I would get this error. So that's something worth trying - Rebuild All in Release mode and then create the store packages.




回答3:


I also faced the same problem, i issued three packages to the store with the same error during certification, in my case, the solution was to set false the EnableDotNetNativeCompatibleProfile tag in the csproj (i didnt found it on the project properties editor), although I replicated the failed test just as huyc replied, the app was successfully submited to the store.



来源:https://stackoverflow.com/questions/35091884/formatmessage-is-not-supported-for-this-application-type

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!