【问题标题】:Helpless error in Windows Phone Unit Test outputWindows Phone 单元测试输出中的无奈错误
【发布时间】:2014-05-13 10:46:33
【问题描述】:

在 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 中打开相同的解决方案,我可以成功运行这些测试

【问题讨论】:

  • 可爱的错误,我应该把它装在墙上:D
  • 也许尝试关闭 VS,删除该文件夹,删除您的 /bin/obj 文件夹,重新构建,然后重试?

标签: c# unit-testing visual-studio-2012 windows-phone


【解决方案1】:

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

也许您可以尝试从控制面板中的“程序和功能”修复您的 VS2012 安装,看看是否可以解决此问题?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-08-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多