简体   繁体   English

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

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

I created new Windows Phone 7.1 project in Visual Studio 2012 Ultimate. 我在Visual Studio 2012 Ultimate中创建了新的Windows Phone 7.1项目。 I have Windows Phone 8 SDK (and I am using Windows 8.1 Pro). 我有Windows Phone 8 SDK(并且我正在使用Windows 8.1 Pro)。 I am trying to add AdMob.dll (from Google) which I downloaded today (version 6.5.13). 我正在尝试添加我今天下载(版本6.5.13)的AdMob.dll(来自Google)。 When I try to add this dll to the project, I get an error: "A reference to a higher version or incompatible assembly cannot be added to the project". 当我尝试将此dll添加到项目中时,出现错误:“无法将对更高版本或不兼容程序集的引用添加到项目中”。

Common solution for this error is to unblock the file, but I don't have "Unblock" button in Windows Explorer when I go to dll properties. 解决此错误的常见方法是取消阻止文件,但是当我进入dll属性时,Windows资源管理器中没有“取消阻止”按钮。 I tried to unblock the dll (and the entire zip) using powershell command "Unblock-File". 我试图使用Powershell命令“ Unblock-File”来解除阻止dll(和整个zip)。 I tried using streams.exe to ublock the entire unzipped folder that I downloaded form Google, so I would say that this dll isn't blocked, but I still cannot add it to my solution. 我尝试使用stream.exe来阻止我从Google下载的整个未压缩文件夹,所以我会说该dll没有被阻止,但是我仍然无法将其添加到我的解决方案中。

Is this version of AdMob.dll incompatible with my VisualStudio/Windows/solution or am I doing something wrong? 此版本的AdMob.dll是否与我的VisualStudio / Windows /解决方案不兼容,或者我做错了什么?

Admob 6.5.13 targets Windows Phone 8 and thus a higher version of the Core Framework, at least the version on the current download page. Admob 6.5.13的目标是Windows Phone 8,因此是Core Framework的更高版本,至少是当前下载页面上的版本。 I suspect you'll need to find a much older version that was compiled against Phone 7, but I do now know if that version would still be supported by google. 我怀疑您需要找到针对Phone 7编译的较旧版本,但现在我知道Google是否仍支持该版本。

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

相关问题 例外:不能将对更高版本或不兼容程序集的引用添加到项目中 - Exception : 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 是否可以将同一装配的不同版本引用到单个项目中? - 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 具有比参考程序集更高版本的程序集“ XXX” - Assembly 'XXX' which has a higher version than referenced assembly
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM