2016-08-02 77 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