Microsoft Universal Apps和Unit Testing,AppModel版本出现问题

我开始尝试使用通用应用程序的新解决方案。 为了测试我的代码,我想添加一个unit testing项目(windows phone 8.1),但如果我这样做,我在开始unit testing时收到此错误消息:

错误:DEP0700:应用程序注册失败。 Windows无法安装程序包808f4bed-6f93-48b9-9b63-071d68456607,因为此程序包需要更高的Windows版本。 该软件包请求Windows版本6.3与AppModel版本1 ,而当前Windows版本为6.3与AppModel版本0 。 (0x80073cfd)

错误信息

这个AppModel版本1AppModel版本0是什么意思,我该如何解决这个问题?

或者是否有另一种方法在Microsoft Universal Apps环境中进行unit testing?

这就是我的项目结构

在此处输入图像描述

更新

Windows Phone 8.1项目+ Windows Phone 8.1unit testing=不工作Windows Phone 8项目+ Windows Phone 8unit testing=工作

但我仍然不知道如何让Windows Phone 8.1运行起来。

顺便说一句我的Windows版本(Windows 8.1更新)

PS C:\Windows\system32> [System.Environment]::OSVersion.Version Major Minor Build Revision ----- ----- ----- -------- 6 3 9600 0 

在Universal Windows App msdn网站上,我看到以下注释:

注意这些示例需要Windows 8.1和Microsoft Visual Studio 2013与Microsoft Visual Studio 2013 Update 2或更高版本。 它们不能在Microsoft Visual Studio 2012 for Windows 8中编译

我检查了我自己当前的Visual Studio安装’关于’页面,看到我有VST 2013 Update 1.可能你必须显式更新你的Visual Studio版本,它似乎默认情况下不会发生。

我还检查了Microsoft Visual Studio 2013 Update 2下载页面并明确指出

它包括用于Windows Phone 8.1开发的工具。

看起来这不是Visual Studio的问题,而是Resharper或其他一些想要使unit testing更容易的工具。

在我的示例中,请参阅此上下文菜单截图 。 我总是在下半部分使用“运行unit testing”命令,这导致了错误消息。 使用较高版本启动仿真器并在平台上运行unit testing。