This has been asked before (1, 2), but unfortunately all previous answers are no longer relevant as they are for older version of .NET framework and either do not work anymore, or not supported.
So, my question: Is there a C# wrapper for SQLite that supports .NET 4 etc.
I tried to search but all binarries that I find are either not working, for older versions or commercial 🙁
As for this ( http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki ), which seems to be what I need it gives me:
Could not load file or assembly 'System.Data.SQLite, Version=1.0.82.0,
Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies.
An attempt was made to load a program with an incorrect format.
I’m using “Precompiled Binaries for 64-bit Windows (.NET Framework 4.0)” for net 4 and for 64 pc.
In fact, you have found the right place already.
You problem may comes from you’re using the wrong version of System.Data.SQLite.dll, because there are two of them, one for x86, one for x64.
Try use Nuget instead of downloading it manually.