I am working on a WPF using C# project in Visual Studion 2017 and am able to run the project in development mode perfectly. But after I publish the project I got the error Unable to load DLL 'SQLite.Interop.dll': The specified module could not be found.(Exception from HRESULT: 0x8007007E).
I searched a lot but couldn't find the solution. Many a place people mentioned that to place SQLite.Interop.dll in Debug folder but in my application those dll of x64 and x86 already exists in Debug folder but the next step they said were to change file properties to
Build Action: None and
Copy to output directory: Copy always
But the problem is I could not find these options when I right click on SQLite.Interop.dll. Please help me in this because I am stuck in this right from bunch of hours. Your's help will be greatly appreciated.
Libfolder under your solution, copy theSQLite.Interop.dllfile into that. Within VS in the Solution Explorer, right click on Dependencies/References and choose Add Reference and select theSQLite.Interop.dllfile. It should then be part of your project and the publish. - Frank Nielsen