命名空间“System.Data”中不存在类型或命名空间名称“SQLite”(您是否缺少程序集引用?) [英] The type or namespace name 'SQLite' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)
问题描述
是的,我已经将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屋!