UWP Windows-10 WACK 测试错误

UWP Windows-10 WACK tests Errors

我是 Windows 应用程序开发的新手。我构建了一个面向 Windows 10 个桌面和移动平台的 C# 应用程序。我的 C# 应用调用 Windows 用 C++ (c++/cx) 编写的运行时组件。

我按照这个 MSDN Link 进行了 运行 WACK 测试。

我的机器上安装了 Windows App Certification Kit 10.0。为了 运行 测试,我 验证商店应用程序 -> Select 我的应用程序从机器上安装的应用程序列表 。我的应用程序以发布模式安装。当我 运行 WACK 测试时,Supported API 测试 失败并显示以下内容:


API ??0Delegate@Platform@@Q$AAA@XZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
    
API ??0Exception@Platform@@Q$AAA@H@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ??0NotImplementedException@Platform@@Q$AAA@XZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ??0Object@Platform@@Q$AAA@XZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?AlignedFree@Heap@Details@Platform@@SAXPAX@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?Allocate@Heap@Details@Platform@@SAPAXII@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?AllocateException@Heap@Details@Platform@@SAPAXII@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?Free@Heap@Details@Platform@@SAXPAX@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?GetActivationFactory@Details@Platform@@YGJPAVModuleBase@1WRL@Microsoft@@PAUHSTRING__@@PAPAUIActivationFactory@@@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?GetActivationFactoryByPCWSTR@@YGJPAXAAVGuid@Platform@@PAPAX@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?GetIBoxArrayVtable@Details@Platform@@YGPAXPAX@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?GetIidsFn@@YGJHPAKPBU__s_GUID@@PAPAVGuid@Platform@@@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?InitializeData@Details@Platform@@YAJH@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?ReleaseTarget@ControlBlock@Details@Platform@@AAEXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?TerminateModule@Details@Platform@@YG_NPAVModuleBase@1WRL@Microsoft@@@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?UninitializeData@Details@Platform@@YAXH@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseAccessDeniedException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseCOMException@@YGXJ@Z in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseChangedStateException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseClassNotRegisteredException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseDisconnectedException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseFailureException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseInvalidArgumentException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseInvalidCastException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseNotImplementedException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseNullReferenceException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseObjectDisposedException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseOperationCanceledException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseOutOfBoundsException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseOutOfMemoryException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_WinRTraiseWrongThreadException@@YGXXZ in vccorlib140.dll is not supported for this application type. sample.dll calls this API.
API ?__abi_translateCurrentException@@YGJ_N@Z 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 ?_Xbad_alloc@std@@YAXXZ in msvcp140.dll is not supported for this application type. sample.dll calls this API.
API ?_Xlength_error@std@@YAXPBD@Z in msvcp140.dll is not supported for this application type. sample.dll calls this API.
API ?_Xout_of_range@std@@YAXPBD@Z in msvcp140.dll is not supported for this application type. sample.dll calls this API.
API ??1_StructuredTaskCollection@details@Concurrency@@QAE@XZ in concrt140.dll is not supported for this application type. sample.dll calls this API.
API ?Free@Concurrency@@YAXPAX@Z in concrt140.dll is not supported for this application type. sample.dll calls this API.
API ?_CheckTaskCollection@_UnrealizedChore@details@Concurrency@@IAEXXZ in concrt140.dll is not supported for this application type. sample.dll calls this API.
API ?_RunAndWait@_StructuredTaskCollection@details@Concurrency@@QAG?AW4_TaskCollectionStatus@23@PAV_UnrealizedChore@23@@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.

在进一步谷歌搜索中,我发现了这些 Link-1 and Link-2


上述链接中可能的解决方案是卸载 KB 2976978 更新并重新运行 WACK 测试 MS Support Error Link
我的机器似乎没有此 KB 2976978 更新。
控制 Panel\Programs\Programs 和功能 查看已安装的更新 or 搜索已安装的更新 似乎没有找到上述更新。
我已经检查过这个:SO post 正如这个 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

非常感谢任何帮助。

问题是,我的 C++ 本机库引用的是桌面 CRT dll(vccorlib140.dll) 而不是存储 CRT dll(vccorlib140_app.dll).

该应用程序引用了桌面 CRT,因为我将我的应用程序与来自以下位置的库链接:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib

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

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib\store