简体   繁体   English

在Visual Studio 2015中添加SQLite参考时遇到问题

[英]Trouble Adding SQLite Reference in Visual Studio 2015

I'm trying to add System.Data.SQLite to my References in Visual Studio 2015. I've right-clicked on References, and selected "Manage NuGet Packages", where I've found System.Data.SQLite and installed it into my project. 我试图将System.Data.SQLite添加到Visual Studio 2015中的引用中。我右键单击引用,然后选择“管理NuGet包”,在其中找到System.Data.SQLite并将其安装到我的项目。 It successfully installs and then shows up in my list of References, but when I type using System.Data.SQLite; 它安装成功,然后显示在我的引用列表中,但是当我using System.Data.SQLite;键入时using System.Data.SQLite; into my code, intellisense doesn't recognize it. 在我的代码中,intellisense无法识别它。 I get an error when I compile saying 'SQLite' does not exist in the namespace System.Data . 当我说'SQLite'在名称空间System.Data中不存在时,出现错误。 I've searched my entire hardrive and the file System.Data.SQLite.dll doesn't exist anywhere. 我已经搜索了整个hardrive,并且文件System.Data.SQLite.dll在任何地方都不存在。 What am I missing here? 我在这里想念什么? Did Visual Studio install it or not? Visual Studio是否安装了它?

I decided to part of the problem by going to C # (was not critical of the choice of language). 我决定去C#来解决部分问题(对语言的选择并不批评)。 I found an article at this link. 我在此链接上找到了一篇文章。 To sum up, you need to download the library with SQLite site for the desired bit and throw in the bin folder to the list of libraries (do not forget to link the project to the "sqlite3.dll" this library). 总结起来,您需要下载带有SQLite站点的库以获得所需的位,然后将bin文件夹放入库列表中(不要忘记将项目链接到该库的“ sqlite3.dll”)。 Just put in NuGet SQLite.Net-PCL expansion (by the way, in C ++ for some reason do not connect, can not be supported for C ++). 只需放在NuGet SQLite.Net-PCL扩展中(顺便说一句,由于某种原因在C ++中无法连接,C ++不支持)。 Sample code to work with SQLite large. 使用SQLite large的示例代码。 All have the link above. 全部都有上面的链接。 https://www.sqlite.org/cintro.html https://www.sqlite.org/cintro.html

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM