Supported API test error in WACK tools for windows 10 wup app

413 Views Asked by At

I developed WUP app after testing WACK tools it given result Supported API test failed. with following message

•Error Found: The supported APIs test detected the following errors:◦API GetConsoleOutputCP in api-ms-win-core-console-l1-1-0.dll is not supported for this application type. NotNul.dll calls this API. ◦API GetStdHandle in api-ms-win-core-processenvironment-l1-1-0.dll is not supported for this application type. NotNul.dll calls this API.

I als got following warning in output

C:\Program Files\MSBuild\Microsoft.NetNative\ARM\ilc\IlcInternals.targets(886,5): warning : Unresolved P/Invoke method 'SetConsoleTextAttribute!api-ms-win-core-console-l2-1-0.dll' in assembly 'System.Console, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. 1>C:\Program Files\MSBuild\Microsoft.NetNative\ARM\ilc\IlcInternals.targets(886,5): warning : Unresolved P/Invoke method 'GetConsoleScreenBufferInfo!api-ms-win-core-console-l2-1-0.dll' in assembly 'System.Console, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs.

How to resolve this issue.I am unable to find where i am using this api's in my code.Thank you in advance.

0

There are 0 best solutions below