2016-08-02 185 views
1

我是Windows应用程序开发新手。我已经构建了一个C#应用程序定位,Windows 10桌面&移动平台。我的C#应用​​程序调用用C++编写的Windows Runtime Component(C++/cx)。UWP Windows-10 WACK测试错误

我跟着这个MSDN Link运行WACK测试。

我有Windows App Certification Kit 10.0安装在我的机器上。要运行测试,我需要验证商店应用程序 - >从机器上的已安装应用程序列表中选择我的应用程序。我的应用程序安装在发布模式下。当运行WACK测试,支持的API测试失败,以下:

 

API [email protected]@@[email protected] in vccorlib140.dll is not supported for this application type. sample.dll calls this API. 
    
API [email protected]@@[email protected]@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@@[email protected] in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@@[email protected] in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@[email protected]@@[email protected] in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@[email protected]@@[email protected] in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@[email protected]@@[email protected] in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@[email protected]@@[email protected] in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@[email protected]@@[email protected] in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@[email protected]@[email protected] in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@[email protected]@[email protected]@@@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@[email protected]@[email protected] in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@[email protected]@@AAEXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@[email protected]@[email protected]@[email protected]@@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@[email protected]@[email protected] in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@[email protected] in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseInvalidC[email protected]@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@[email protected] in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API _CxxThrowException in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API __CxxFrameHandler3 in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API __std_exception_copy in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API __std_exception_destroy in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API __std_terminate in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API __std_type_info_destroy_list in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API __telemetry_main_invoke_trigger in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API __telemetry_main_return_trigger in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API __vcrt_InitializeCriticalSectionEx in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API _except_handler4_common in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API _purecall in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API memcpy in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API memmove in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API memset in vcruntime140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@@YAXXZ in msvcp140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@@[email protected] in msvcp140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@@[email protected] in msvcp140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@[email protected]@[email protected] in concrt140.dll is not supported for this application type. sample.dll calls this API.
API [email protected]@@[email protected] in concrt140.dll is not supported for this application type. sample.dll calls this API.
API [email protected][email protected]@[email protected]@IAEXXZ in concrt140.dll is not supported for this application type. sample.dll calls this API.
API [email protected][email protected]@[email protected]@[email protected]@[email protected]@@Z in concrt140.dll is not supported for this application type. sample.dll calls this API.
API GetModuleHandleW in kernel32.dll is not supported for this application type. sample.dll calls this API.
API TlsAlloc in kernel32.dll is not supported for this application type. sample.dll calls this API.
API TlsFree in kernel32.dll is not supported for this application type. sample.dll calls this API.
API TlsGetValue in kernel32.dll is not supported for this application type. sample.dll calls this API.
API TlsSetValue in kernel32.dll is not supported for this application type. sample.dll calls this API.
API UnhandledExceptionFilter in kernel32.dll is not supported for this application type. sample.dll calls this API.

在进一步的googling,我发现这些Link-1Link-2


在上述链路的可能的解决方案是卸载KB 2976978更新&重新运行WACK测试MS Support Error Link
我的机器似乎没有这个KB 2976978更新。
控制面板\程序\程序和功能查看已安装的更新搜索已安装的更新似乎没有发现上面更新。
我已经检查了这一点:SO post在本甚至在我的情况下,一切都那么帖子中提到的编译罚款与/ZW/EHSC/d标志
我的VS细节:

 
MS Visual Studio Professional 2015 

Version 14.0.25123.00 Update 2
MS .NET Framework
Version 4.6.01038

任何帮助将是非常赞赏。

回答

3

的问题是,我的C++本地库被引用桌面CRT的DLL(vccorlib140.dll)而不是网店CRT DLL(vccorlib140_app.dll)。

这个应用程序引用桌面CRT,因为我是连接我从这个位置库的应用程序:

C:\ Program Files文件(x86)的\微软的Visual Studio 14.0 \ VC \ lib中

原来建一个商店应用,我们需要从这个位置引用库:

C:\ PROGRAM网络(x86)\ Microsoft Visual Studio 14.0 \ VC \ lib \ store