Hello. I built .appxupload file to upload to Windows Store. After it i run Windows App Cert Kit and got an error:
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.
How to fix it? I’am using Unity 5.5.1f1 Visual Studio 2015 Update 3 .
SDK - Universal 10. Configuration=Master in Visual Studio.
Is .NET Native enabled in project settings? That error suggests it isn’t.
No, in the generated VS project properties.
By the way - when you generated AppX package, did you select “I want to upload this to windows store”? I believe they then explicitly disable .NET native in order to run it themselves during the submission process. Here’s something having the same issue on stackoverflow:
http://stackoverflow.com/questions/35091884/formatmessage-is-not-supported-for-this-application-type
I am building appxupload file using command:
“%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe” %~dp0\DNL.sln /p:platform=“x86” /p:Configuration=“Master” /p:UapAppxPackageBuildMode=StoreUpload
So… yes : UapAppxPackageBuildMode=StoreUpload
Could you please post screenshots with checkboxes in Visual Studio properties i need to select to build properly?
The checkbox you pointed the arrow to in your VS screenshot has to be checked (“Compile with .NET Native toolchain”).
Does it work if you don’t specify “/p:UapAppxPackageBuildMode=StoreUpload”?
I don’t think you’re supposed to run .appxupload through WACK locally. It’s meant for packages not built for store submission.
Yes, you are right: without “/p:UapAppxPackageBuildMode=StoreUpload” appx-file passed localy certification successfully. So … what does it mean: my file built in with “/p:UapAppxPackageBuildMode=StoreUpload” will pass successfully certification in the Store after uploading?
You are right again. I uploaded “*.appxupload” - files to Windows Store that locally did not pass certification, and in the Windows Store they passed certification successfully. Thank you!
Using Unity 5.5 , previous updates used Visual Studio 2015 Community Edition and passed store certification without problems.
Switched to Visual Studio 2017 Community Edition and got the same message from Windows Store
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.
Using the local Windows App Cert Kit (version 10.0.14393.795) the test passed successfully.
Seems that some others are having similar issue too.
https://social.msdn.microsoft.com/Forums/windowsapps/en-US/2fa601f0-0b75-4920-8e99-ec880459673c/supported-api-test-failed-on-submitting-app-to-the-store-api-formatmessage-in
^ Enable .NET native/build in master configuration.
Compile with .NET Native tool chain was checked in the Master Build Configuration.
Another app made with Unity 5.5 + Visual Studio 2017 Community just passed the certification so this hopefully was just some temporary bug on certification process or something 
Are you getting this locally or when submitting to the store?
Local App Cert Kit passed all the tests, error found when submitted to the store. Received reply from Microsoft support.
“As it turns out, this is a known issue. Moving forward, please attempt to submit the app again as we believe it should now pass.” . So have to try my luck again :).
It seems this is not solved yet (or is there a Workaround?). Our app passes all tests of the Local App Cert Kit and then Fails with the above error message when submitted to the store. We are using VS 2017 community. .NET native is enabled in the used master configuration.