【发布时间】:2015-11-11 18:25:06
【问题描述】:
我有一个功能齐全的应用程序,我已经在多部手机上进行了本地测试。我现在准备发布该应用程序进行封闭测试,这导致 XAP 文件包含各种不受支持的 API,但是当我在解决方案中搜索它们时,我找不到任何参考。
有人有这方面的经验吗?
不支持的 APIS 片段
This API is not supported for this application type - Api=lstrcmpW. Module=api-ms-win-core-string-obsolete-l1-1-0.dll. File=vstest.exe.
This API is not supported for this application type - Api=GetModuleFileNameW. Module=api-ms-win-core-libraryloader-l1-1-1.dll. File=vstest.exe.
This API is not supported for this application type - Api=GetModuleHandleA. Module=api-ms-win-core-libraryloader-l1-1-1.dll. File=vstest.exe.
This API is not supported for this application type - Api=LoadLibraryExW. Module=api-ms-win-core-libraryloader-l1-1-1.dll. File=vstest.exe.
This API is not supported for this application type - Api=CreateProcessW. Module=api-ms-win-core-processthreads-l1-1-1.dll. File=vstest.exe.
This API is not supported for this application type - Api=GetStartupInfoW. Module=api-ms-win-core-processthreads-l1-1-1.dll. File=vstest.exe.
This API is not supported for this application type - Api=WaitForSingleObject. Module=api-ms-win-core-synch-l1-2-0.dll. File=vstest.executionengine.WindowsPhone.dll.
This API is not supported for this application type - Api=inet_pton. Module=ws2_32.dll. File=vstest.executionengine.WindowsPhone.dll.
This API is not supported for this application type - Api=WsAcceptChannel. Module=webservices.dll. File=vstest.executionengine.WindowsPhone.dll.
This API is not supported for this application type - Api=WsAlloc. Module=webservices.dll. File=vstest.executionengine.WindowsPhone.dll.
This API is not supported for this application type - Api=WsCloseChannel. Module=webservices.dll. File=vstest.executionengine.WindowsPhone.dll.
This API is not supported for this application type - Api=WsCloseListener. Module=webservices.dll. File=vstest.executionengine.WindowsPhone.dll.
This API is not supported for this application type - Api=WsSendMessage. Module=webservices.dll. File=vstest.executionengine.WindowsPhone.dll.
This API is not supported for this application type - Api=Microsoft.Phone.Shell.CycleTileData. Module=. File=Cimbalino.Phone.Toolkit.Background.dll.
This API is not supported for this application type - Api=Microsoft.Phone.Shell.FlipTileData. Module=. File=Cimbalino.Phone.Toolkit.Background.dll.
This API is not supported for this application type - Api=Sleep. Module=api-ms-win-core-synch-l1-2-0.dll. File=vstest.exe.
This API is not supported for this application type - Api=GetTickCount. Module=api-ms-win-core-sysinfo-l1-2-0.dll. File=vstest.exe.
This API is not supported for this application type - Api=RtlCaptureContext. Module=api-ms-win-core-rtlsupport-l1-2-0.dll. File=vstest.exe.
This API is not supported for this application type - Api=RtlVirtualUnwind. Module=api-ms-win-core-rtlsupport-l1-2-0.dll. File=vstest.exe.
This API is not supported for this application type - Api=SetUnhandledExceptionFilter. Module=api-ms-win-core-errorhandling-l1-1-1.dll. File=vstest.exe.
This API is not supported for this application type - Api=UnhandledExceptionFilter. Module=api-ms-win-core-errorhandling-l1-1-1.dll. File=vstest.exe.
This API is not supported for this application type - Api=TerminateProcess. Module=api-ms-win-core-processthreads-l1-1-1.dll. File=vstest.exe.
This API is not supported for this application type - Api=_fmode. Module=msvcrt.dll. File=vstest.exe.
This API is not supported for this application type - Api=wcscat_s. Module=msvcrt.dll. File=vstest.exe.
This API is not supported for this application type - Api=wcscpy_s. Module=msvcrt.dll. File=vstest.exe.
This API is not supported for this application type - Api=wcslen. Module=msvcrt.dll. File=vstest.exe.File=vstest.executionengine.WindowsPhone.dll.File=vstest.executionengine.WindowsPhone.dll.
This API is not supported for this application type - Api=__dllonexit. Module=msvcrt.dll. File=vstest.executionengine.WindowsPhone.dll.
This API is not supported for this application type - Api=_amsg_exit. Module=msvcrt.dll. File=vstest.executionengine.WindowsPhone.dll.
This API is not supported for this application type - Api=_initterm. Module=msvcrt.dll. File=vstest.executionengine.WindowsPhone.dll.
This API is not supported for this application type - Api=_lock. Module=msvcrt.dll. File=vstest.executionengine.WindowsPhone.dll.
This API is not supported for this application type - Api=_onexit. Module=msvcrt.dll. File=vstest.executionengine.WindowsPhone.dll.
This API is not supported for this application type - Api=_unlock. Module=msvcrt.dll. File=vstest.executionengine.WindowsPhone.dll.
This API is not supported for this application type - Api=_vsnwprintf. Module=msvcrt.dll. File=vstest.executionengine.WindowsPhone.dll.Module=msvcrt.dll. File=vstest.executionengine.WindowsPhone.dll.
This API is not supported for this application type - Api=wcslen. Module=msvcrt.dll. File=vstest.executionengine.WindowsPhone.dll.
解决一个问题的任何帮助都可以让我有希望地解决另一个问题吗?
更新 我发现一个引用有一个问题,我已经更新并且 API 错误已被删除。但是其他关于vstest的我不明白?
我读到 android 有一些类似的东西,他们在编译之前会删除它们。 WP上的问题可以类似吗?
【问题讨论】:
-
我对“vstest.exe”感到惊讶。您的应用中是否有单元测试?
-
@kookiz 我的搜索还表明它是单元测试。但一直无法找到它。但是我们/我在这个开发过程中没有使用单元测试。不过怎么能去掉呢?我与 Microsoft 支持人员的联系表示他们无法解决这些问题:/
-
您从哪里获得此不受支持的 API 列表?您在项目中有哪些参考资料?列出的文件与测试相关,不应包含在您提交给商店的 XAP 中。
-
@MattLacey 我是从在线认证和本地商店认证工具包中获得的。我有什么参考资料?你想要整个列表吗?这是一个使用 azure、c++ 和许多不同功能的大型项目。但是,如果您认为该列表会有所帮助,我会提交此列表吗?我知道它们不应该被包括在内,但我们还没有使用单元测试,所以我正在浏览参考资料,看看是否能找到使用它们的人。如果该工具指定了测试的完成位置,它会有所帮助,因为它不在我们的代码中。希望对此有一些指示:)
标签: silverlight windows-phone-8.1 windows-store-apps xap