[英]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.