Visual Studio C# - SQLite.Interop.dll not found

后端 未结 8 2219
忘了有多久
忘了有多久 2020-12-06 03:22

I am currently trying to create with Visual Studio a C# application working with SQLite. I installed SQLite for my program with NuGet and three references appeared in the So

8条回答
  •  眼角桃花
    2020-12-06 03:42

    "Note : I tried the first answer of this post : unable to load dll sqlite interop dll WPF But I didn't seem to work for me."

    I tried that, too, and finally got it working. However, important is:

    1. Insert the sqlite.interop.dll as an existing item to the root of the project you are going to build.
    2. In the properties of that file, make sure its build processing is 'content' (not embedded resource as suggested) and, of course, copied to the output directory always.

    Hope that helps to beat that annoying bug.

提交回复
热议问题