微软通用应用程序和单元测试,以AppModel版本的麻烦 [英] Microsoft Universal Apps and Unit Testing, trouble with AppModel version

查看:969
本文介绍了微软通用应用程序和单元测试,以AppModel版本的麻烦的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始了新的解决方案来尝试通用应用程序。
为了测试我的代码,我想添加一个单元测试项目(的Windows Phone 8.1),但如果我这样做,当我开始单元测试我得到这个错误信息:




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






这是什么 AppModel版本1 AppModel版本0 的意思,而我怎么能修复此?



或者是存在的,另一种方法做单元测试在微软通用应用程序?



上下文这是我的项目结构是什么样子





更新



的Windows Phone 8.1项目+的Windows Phone 8.1的单元测试=没有工作
的Windows Phone 8项目+的Windows Phone 8的单元测试工作=



但是我仍然没有线索我怎么能得到的Windows Phone 8.1上班。



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

  PS C:\Windows\system32> [统环境] :: OSVersion.Version 

主要次要构建版本
--------- --------- --------- --------
6 3 9600 0


解决方案


通用的Windows应用程序的MSDN网站
我看到以下注意:




请注意这些样品需要Windows 8.1和Microsoft Visual Studio
2013与Microsoft Visual Studio 2013更新2或更高版本。他们没有
编译在Microsoft Visual Studio 2012为Windows 8




我检查了我自己目前的Visual Studio安装关于网页,看看我有VST 2013更新1
也许你必须明确地更新您的Visual Studio版本,它似乎并不在默认情况下发生的。



我还检查了微软的Visual Studio 2013 Update 2的下载页面,并且明确指出




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



I started a new Solution to try the Universal Apps. To test my code I want to add a unit test project (windows phone 8.1), but if I do so I get this error message when I start a unit test:

Error : DEP0700 : Registration of the app failed. Windows cannot install package 808f4bed-6f93-48b9-9b63-071d68456607 because this package requires a higher Windows version. The package requested Windows version 6.3 with AppModel version 1, while the current Windows version is 6.3 with AppModel version 0. (0x80073cfd)

What does this AppModel version 1 and AppModel version 0 mean, and how can I fix this?

Or is there and another way to do unit tests in the context of Microsoft Universal Apps?

This is what my project structure looks like

Update

Windows Phone 8.1 Project + Windows Phone 8.1 Unit Test = don't work Windows Phone 8 Project + Windows Phone 8 Unit Test = works

But I still don't have a clue how I can get the Windows Phone 8.1 to work.

btw my windows version (Windows 8.1 Update)

PS C:\Windows\system32> [System.Environment]::OSVersion.Version

Major  Minor  Build  Revision
-----  -----  -----  --------
6      3      9600   0

解决方案

On Universal Windows App msdn site I see following note:

Note These samples require Windows 8.1 and Microsoft Visual Studio 2013 with Microsoft Visual Studio 2013 Update 2 or later. They don't compile in Microsoft Visual Studio 2012 for Windows 8

I checked my own current Visual Studio Installation 'About' page and see that I have VST 2013 Update 1. Maybe you have to explicitly update your Visual Studio version, it doesn't seem to happen by default.

I also checked the Microsoft Visual Studio 2013 Update 2 download page and that explicitly states

It includes tools for Windows Phone 8.1 development.

这篇关于微软通用应用程序和单元测试,以AppModel版本的麻烦的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆