简体   繁体   English

例外:不能将对更高版本或不兼容程序集的引用添加到项目中

[英]Exception : A reference to a higher version or incompatible assembly cannot be added to the project

Whenever I try to add Windows.Web.Http.dll to my windows phone 8.1 application , in my visual studio 2013 environment, I am getting the following exception. 每当我在Visual Studio 2013环境中尝试将Windows.Web.Http.dll添加到Windows Phone 8.1应用程序时,都会遇到以下异常。

A reference to a higher version or incompatible assembly cannot be added to the project

在此处输入图片说明

I don't see any "Unblock" options as many bloggers suggest. 我看不到许多博客建议的“取消阻止”选项。

If someone have come across such an error, please share your thoughts.. Thanks in advance 如果有人遇到这样的错误,请分享您的想法。

~Sebastian 〜塞巴斯蒂安

不要使用“浏览”面板,而是在“程序集”面板中搜索您似乎不支持Windows Phone 8.1项目的Windows.Web.Http.dll。

Windows.Web.Http is not supported in Windows Phone 8 Check the requirement section on below documentation link for Windows.Web.Http Windows Phone 8不支持 Windows.Web.Http。请检查以下Windows.Web.Http文档链接上的“要求”部分。

Windows.Web.Http namespace Windows.Web.Http命名空间

For windows phone 8 try using System.Net.WebClient . 对于Windows Phone 8,请尝试使用System.Net.WebClient

P:S. 警: I will recommend use Windows phone 8.1 我会建议使用Windows Phone 8.1

Hope this helps 希望这可以帮助

在Windows资源管理器中找到该文件。右键单击属性,单击“取消阻止”,然后重试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 不能将对更高版本或不兼容程序集的引用添加到项目中 - A reference to a higher version or incompatible assembly cannot be added to the project 错误:无法将对更高程序集或不兼容的引用添加到项目中 - Error : A reference to a higher assembly or incompatible can't be added to the project 我添加了一个项目作为参考,但仍然找不到 - I added a project as reference but it still cannot be found 尝试获取程序集版本信息时出现ANull参考异常 - ANull reference exception when I try to get assembly version info 是否可以将同一装配的不同版本引用到单个项目中? - Is it possible to reference different version of the same assembly into a single project? 我的项目可以引用针对较低版本.net框架的程序集吗? - Can my project reference an assembly targeting a lower version of .net framework? 无法从网站项目加载要执行的参考程序集 - Cannot load a reference assembly for execution from a Web-Site project 如果将摘要添加为参考,则摘要不会显示在程序集中 - Summary is not showing in the assembly if it is added as a reference 项目中文件夹的程序集参考 - assembly reference for folder in a project 程序集XXX具有比引用的程序集XXX高的版本 - Assembly XXX which has a higher version than referenced assembly XXX
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM