I am writing a C# appli that uses SQLite with extensions. However it throws an exception on this line
cnn.LoadExtension("SQLite.Iterop.dll", "sqlite3_json_init");
Now there are a lot of similar questions to this, so please don't just mark this as "duplicate" without reading, since I have already tried the solutions of those questions.
I will tell here what I ve tried:
- Some answers suggest to use Nuget to install
System.Data.SQlite.Core
. I have already checked and it is already installed - Some other answersuggested including the dlls in X86 and X32 folders to the project. I tried to do this but first the folders don't get included, and when I include the dlls the error is still there
- Some other answer suggested to just copy manually the dlls into the bin Debug folder. Already tried that, it does not work
- Another answer suggested to setup the platform target from AnyCPU to x86 for example. I tried that and that also fails
How can the program find this dlls (that is under both x86 and x32 folder in the Debug folder)