Error while creating production build in UWP
while preparing the build I am facing below issue, so able to build the app in release mode
Error 1:
Severity Code Description Project File Line Suppression StateError ILT0005: 'C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\runtime.win10-x86.microsoft.net.native.compiler\2.2.10-rel-29722-00\tools\x86\ilc\Tools\nutc_driver.exe @"C:\Dev\ValoTool\ValoTool.UWP\obj\x86\Release\ilc\intermediate\MDIL\ValoTool.UWP.rsp"' returned exit code 1 ValoTool.UWP
Error 2: After unchecked "Compile with .net native tool chain" option
Supported APIs
Error Found: The supported APIs test detected the following errors:
API AllowSetForegroundWindow in user32.dll is not supported for this application type. SourceTree.exe calls this API.
API WaitForInputIdle in user32.dll is not supported for this application type. SourceTree.exe calls this API.
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. 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 Microsoft Store apps.