简体   繁体   中英

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. It successfully installs and then shows up in my list of References, but when I type using System.Data.SQLite; into my code, intellisense doesn't recognize it. I get an error when I compile saying 'SQLite' does not exist in the namespace System.Data . I've searched my entire hardrive and the file System.Data.SQLite.dll doesn't exist anywhere. What am I missing here? Did Visual Studio install it or not?

I decided to part of the problem by going to C # (was not critical of the choice of language). 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). 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 ++). Sample code to work with SQLite large. All have the link above. https://www.sqlite.org/cintro.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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