Why am I getting “Unable to load DLL 'sqlite3'” in my WPF app?

后端 未结 3 993
北海茫月
北海茫月 2021-01-12 10:46

I added what I thought were the necessary SQLite (and sqlite-net) packages to my app. On running it, though, I get an exception:

System.DllNotFoundException was u

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-12 11:06

    In my case I just had to set project build to x86 or x64 AND set the target framework to 4. It doesn´t work with a higher framework.

提交回复
热议问题