Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

FormatMessage in api-ms-win-core-localization-l1-2-0.dll is not supported for this application type

Discussion in 'Windows' started by skyrusfxg, Jan 26, 2017.

  1. skyrusfxg

    skyrusfxg

    Joined:
    Jan 14, 2016
    Posts:
    127
    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 .
     
  2. skyrusfxg

    skyrusfxg

    Joined:
    Jan 14, 2016
    Posts:
    127
    SDK - Universal 10. Configuration=Master in Visual Studio.
     
    Last edited: Jan 26, 2017
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,507
    Is .NET Native enabled in project settings? That error suggests it isn't.
     
  4. skyrusfxg

    skyrusfxg

    Joined:
    Jan 14, 2016
    Posts:
    127
    - do you meen Unity side?
     

    Attached Files:

    • Net.png
      Net.png
      File size:
      31.1 KB
      Views:
      1,015
    • Net1.png
      Net1.png
      File size:
      12.5 KB
      Views:
      990
  5. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,507
  6. skyrusfxg

    skyrusfxg

    Joined:
    Jan 14, 2016
    Posts:
    127
    Or Visual Studio side?
     

    Attached Files:

    • Net2.png
      Net2.png
      File size:
      20.8 KB
      Views:
      933
  7. skyrusfxg

    skyrusfxg

    Joined:
    Jan 14, 2016
    Posts:
    127
    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?
     
    Last edited: Jan 26, 2017
  8. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,507
    The checkbox you pointed the arrow to in your VS screenshot has to be checked ("Compile with .NET Native toolchain").
     
  9. skyrusfxg

    skyrusfxg

    Joined:
    Jan 14, 2016
    Posts:
    127
    It did not help :(
     
  10. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,507
    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.
     
  11. skyrusfxg

    skyrusfxg

    Joined:
    Jan 14, 2016
    Posts:
    127
    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?
     
  12. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,507
    That's correct. It will.
     
  13. skyrusfxg

    skyrusfxg

    Joined:
    Jan 14, 2016
    Posts:
    127
    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!
     
  14. JariHuomo

    JariHuomo

    Joined:
    Feb 8, 2013
    Posts:
    48
    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/F...mitting-app-to-the-store-api-formatmessage-in
     
  15. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,507
    ^ Enable .NET native/build in master configuration.
     
  16. JariHuomo

    JariHuomo

    Joined:
    Feb 8, 2013
    Posts:
    48
    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 :)
     
  17. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,507
    Are you getting this locally or when submitting to the store?
     
  18. JariHuomo

    JariHuomo

    Joined:
    Feb 8, 2013
    Posts:
    48
    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 :).
     
  19. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,507
  20. bluedog

    bluedog

    Joined:
    Jun 26, 2017
    Posts:
    4
    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.
     
  21. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,507
    Can you attach full report of what store certification report said?
     
  22. bluedog

    bluedog

    Joined:
    Jun 26, 2017
    Posts:
    4
    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:
     
  23. ClaytonOne

    ClaytonOne

    Joined:
    Sep 5, 2015
    Posts:
    89
    Submit again and it should go through this time. Happened to me a few days ago.
     
  24. bluedog

    bluedog

    Joined:
    Jun 26, 2017
    Posts:
    4
    I have tried already 2 times. Even if this matches einsteins definition of insanity ("doing the same thing over and over again and expecting different results")? No success.....
     
  25. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,507
    I would try posting this on Microsoft's forums... It's an issue with their tools and it's complaining about their DLL. There's not much we can do here.
     
  26. bluedog

    bluedog

    Joined:
    Jun 26, 2017
    Posts:
    4
    I created a Microsoft support ticket. After some time they wrote me, that the issue is resolved and my app was accepted.