The type or namespace name 'SQLite' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)
c#, dll, reference, sqlite, visual-studio-2012
Solution
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.
Problem
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.