Sqlite not in list of Visual Studio data source options

£可爱£侵袭症+ 提交于 2019-12-30 07:51:54

问题


Downloaded and ran SQLite setup.
Added dll reference to my project
In Server Explorer, added new connection, clicked 'Change' for data source and SQLite was one of the options.
Connected and used my tables.

Then...VS 2010 crashed. When I reloaded my project, my connection wasn't in Server explorer, so tried to add it again.
SQLite was not in the list of options.
Re-ran SQLite setup, deleted/re-added reference, restarted project...still no SQLite in the list.

How can I get SQLite connected in Server Explorer???


回答1:


This is an old question but for someone, like me, who finds this before there is a newer answer:

missing SQLite data provider in VS 2013

Basically for the latest versions of SQLite you can download an installer that includes the components

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

Choose the right setup for you, for me was: Setups for 32-bit Windows (.NET Framework 4.5.1) sqlite-netFx451-setup-bundle-x86-2013-1.0.94.0.exe




回答2:


I have Windows 7 x64 with Visual Studio community 2015 and this solution worked for me.
Basically you need install SQLite bundel and check the "Install the designer component for Visual Studio 2015".
If you have different version from 2015 (2010/2013 etc.) just search for the bundle the suits your version.

1. Go to:
http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki

2. Download "sqlite-netFx46-setup-bundle-x86-2015-1.0.104.0" (download the most updated, this is the one I found).

Or by a direct link:
http://system.data.sqlite.org/downloads/1.0.104.0/sqlite-netFx46-setup-bundle-x86-2015-1.0.104.0.exe

3. Run the setup:

4. Result:




回答3:


You can find installers on the System.Data.SQLite Dowload Page. Seteps files will suit your needs.

For example, the description of the Setups for 64-bit Windows (.NET Framework 4.0) states:

This setup package features the mixed-mode assembly and will install all the necessary runtime components and dependencies for the x64 version of the System.Data.SQLite 1.0.81.0 (3.7.12.1) package. The Visual C++ 2010 SP1 runtime for x64 is included. The .NET Framework 4.0 is required.




回答4:


None of answers worked for me. in addition to @E235 answer i added sqlite nuget package updated ef to 6.1.3 then it worked i was able to see datasource



来源:https://stackoverflow.com/questions/10215488/sqlite-not-in-list-of-visual-studio-data-source-options

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!