将参考从 Microsoft.Phone.WinJS.2.1 版本 1.0.9651.0 更新为版本 1.0.9651.40228 [英] Update the reference from Microsoft.Phone.WinJS.2.1, version 1.0.9651.0 to version 1.0.9651.40228

查看:21
本文介绍了将参考从 Microsoft.Phone.WinJS.2.1 版本 1.0.9651.0 更新为版本 1.0.9651.40228的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用更新 3 在 Visual Studio Professional 2013 中构建/部署我的 Windows Phone 应用程序.显示以下控制台输出:

I was building/deploying my Windows Phone app in Visual Studio Professional 2013 with Update 3. The following console output showed up:

1>------ Build started: Project: CapturingVideos, Configuration: Debug ARM ------
2>------ Deploy started: Project: CapturingVideos, Configuration: Debug ARM ------
2>Deploying to Phone Internal Storage...
2>Creating a new clean layout...
2>Copying files: Total <1 mb to layout...
2>Checking whether required frameworks are installed...
2>Warning : DEP0810 : This app references Microsoft.Phone.WinJS.2.1, version 
1.0.9651.0, found in your SDK, but you have a higher version of 
Microsoft.Phone.WinJS.2.1 installed on the target machine, 1.0.9651.40228. If you 
continue to run this application, it will run against the currently installed version,  
Microsoft.Phone.WinJS.2.1, version 1.0.9651.40228. Consider updating your SDK to match     
the version of Microsoft.Phone.WinJS.2.1 that is installed. 
http://go.microsoft.com/fwlink/?LinkId=260891
2>Registering the application to run from layout...

我很好奇警告,它建议我将参考从 WinJS.2.1 v1.0.9651.0 更新到 v1.0.9651.40228.所以我下载并安装了 Visual Studio 2013 Extensions for the Windows Library for the Windows LibraryJavaScript.重新启动操作系统和 VS 2013 后,我尝试从空白模板创建一个新的 Windows Phone 项目.我希望 References 文件夹包含适用于 JavaScript 2.1 v1.0.9651.40228 的 Windows 库.但是,它仍然只指向旧版本,即 v1.0.9651.0.我是在错误的轨道上还是我错过了什么?请指出我正确的方向.谢谢!

I was curious about the Warning which suggested me to update the reference from WinJS.2.1 v1.0.9651.0 to v1.0.9651.40228. So I downloaded and installed the Visual Studio 2013 Extensions for the Windows Library for JavaScript. After restarting the OS and VS 2013, I tried to create a new Windows Phone project from the blank template. I expected the References folder to contain Windows Library for JavaScript 2.1 v1.0.9651.40228. However, it still only point to the old version, which was v1.0.9651.0. Was I on the wrong track or did I miss something? Please point me to the right direction. Thanks!

推荐答案

该问题是由错误的应用程序包版本号引起的,尽管所有 .包包含的 .js 和 .css 文件在其标头中指定了正确的内部版本号 1.0.9651.40228.

The issue is caused by wrong App Package Version number which is clearly displayed as 1.0.9651.0 in the reference properties despite all the .js and .css files the package contains have the correct build number 1.0.9651.40228 specified in their headers.

App Package Version 属性从包的清单文件 %Program Files%\Microsoft SDKs\WindowsPhoneApp\v8.1\ExtensionSDKs\Microsoft.Phone.WinJS.2.1\1.0\SDKManifest.xml 中获取其值 特别是从以下行:

The App Package Version property takes its value from package's manifest file %Program Files%\Microsoft SDKs\WindowsPhoneApp\v8.1\ExtensionSDKs\Microsoft.Phone.WinJS.2.1\1.0\SDKManifest.xml particularly from the following line:

FrameworkIdentity="Name=Microsoft.Phone.WinJS.2.1, MinVersion=1.0.9651.0"

所以勾选文件的只读标志,以管理员身份打开它并更改 MinVersion 编号.重新加载您的解决方案.警告消息应该会消失.

So tick the file's Read-only flag off, open it as an administrator and change the MinVersion number. Reload your solution. The warning message should disappear.

这篇关于将参考从 Microsoft.Phone.WinJS.2.1 版本 1.0.9651.0 更新为版本 1.0.9651.40228的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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