命名空间“System.Data”中不存在类型或命名空间名称“SQLite”(您是否缺少程序集引用?) [英] The type or namespace name 'SQLite' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)

查看:1010
本文介绍了命名空间“System.Data”中不存在类型或命名空间名称“SQLite”(您是否缺少程序集引用?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是的,我已经将System.Data.Sqlite.dll添加到我的项目(VS2012)。
是的,我已经添加了一个引用。
YES,我已经双重检查,引用已被创建(引用属性>路径是正确的)。
是的,我已经使用Google,Bing,



不,我不知道为什么我的代码不会编译。

解决方案

看起来您正在引用与您在应用程序中使用的.NET版本不兼容的System.Data.Sqlite.dll不正确的版本。 / p>

尝试从 http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki


YES, I have added the System.Data.Sqlite.dll to my project (VS2012). YES, I have added a reference. YES, I have doublechecked, that the reference has been created (Reference Properties > Path is correct). YES, I have used Google, Bing,

NO, I don't know why my code won't compile.

解决方案

Looks like you are referencing incorrect version of System.Data.Sqlite.dll that is not compatible with version of .NET you are using in your application.

Try install correct one from http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki

这篇关于命名空间“System.Data”中不存在类型或命名空间名称“SQLite”(您是否缺少程序集引用?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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