引用 ZXing.Net 库 [英] Referencing ZXing.Net library

查看:27
本文介绍了引用 ZXing.Net 库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要参考 ZXing 库来扫描我的 Windows Phone 8 应用程序中的二维码.我已经从以下来源下载了 ZXing.Net 0.10.0.0:http://zxingnet.codeplex.com/

I need to reference the ZXing library to scan QR codes in my Windows Phone 8 app. I have downloaded the ZXing.Net 0.10.0.0 from the following source: http://zxingnet.codeplex.com/

但是,每当我尝试添加对 zxing.wp8.0.dll 的引用时,都会出现如下错误:

However, whenever i try to add a reference to zxing.wp8.0.dll, I get an error as follows:

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

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

请问我为什么会收到此错误.有什么我做错或遗漏的地方吗?

Can I please know why am I getting this error. Is there anything that I am doing wrong or missing?

推荐答案

在文件资源管理器中右键单击 DLL --> 单击属性 --> 选择取消阻止.然后尝试再次添加引用.

Right click on the DLL in File Explorer --> Click Properties --> Choose unblock. Then try to add a reference again.

VS2012 具有绝对最糟糕的错误消息,因为当 DLL 因从 Web 下载而被阻止时.

VS2012 has the absolute worst error message for when DLLs are blocked due to the fact they were downloaded from the web.

这篇关于引用 ZXing.Net 库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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