Windows Phone单元测试输出中出现无助错误

本文关键字:无助 错误 Phone 单元测试 输出 Windows | 更新日期: 2023-09-27 18:03:10

在Visual Studio express 2012 update 4下,我创建了windows phone应用程序,为此我添加了windows phone单元测试应用程序。当我尝试运行测试时,Tests输出窗口显示以下错误:

------ Run test started ------
Failed to import IDeployService. Cannot proceed with xap deployment. This failure can be observed if the component model cache (typically located in %LocalAppData%'Microsoft'VisualStudio'[version]'ComponentModelCache) is not up-to-date.  To come out of this error, close all instances of visual studio, delete the component model cache folder and try again.
Unit tests in source D:'projekty'PhoneApp3'TestApp1'Bin'x86'Debug'TestApp1.dll cannot be run. Please create a Windows Store or Windows Phone Unit Test project.
========== Run test finished: 0 run (0:00:00,0009998) ==========

删除%LocalAppData%'Microsoft'VisualStudio'[version]'ComponentModelCache没有帮助

编辑:如果我在VS 2013 Express for Windows中打开相同的解决方案,我可以成功运行这些测试

Windows Phone单元测试输出中出现无助错误

是VS21012+Update4和VS2013 Express的并排安装吗?

也许你可以尝试修复VS2012安装从"程序&"功能",看看这是否解决了这个问题?