Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The type or namespace name 'SQLite' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)

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.

like image 861
UnregularExpression Avatar asked Aug 24 '13 13:08

UnregularExpression


1 Answers

If it was installed with nuget, execute the following command in the Package Manager Console :

Update-Package –reinstall System.Data.SQLite

In VS2013, you can find this console in the menu View > Other Windows > Package Manager Console.

As stated in a comment, this error happens if your project is configured to use Net45 when installing the package and some time after you configure it to use Net40.

I guess that the reverse case, Net40 to Net45 configuration, may also throws this error.

like image 173
Sebastien GISSINGER Avatar answered Oct 10 '22 04:10

Sebastien GISSINGER