Reputation: 1037
my Application consists of 2 Projects: App (with the EXE) and AppLib (A libary with different classes). I added SQLite with NuGet to the AppLib-Libary because all classes the handle the database-stuff are located there.
App
|--App
|--AppLib
The plan is, that my App-Project calls the and the database is filles with tables. When i build my project my App.exe and the AppLib.dll and all the SQLite-dlls are copied to App/bin/Debug.
But if i run my programm i get the error, that the SQLite.Interop.dll is missing. These dlls exists in AppLib:
App\AppLib\bin\Debug\x86\SQLite.Interop.dll
App\AppLib\bin\Debug\x64\SQLite.Interop.dll
But they are not copied to App\App\bin\Debug.
How do i manage this?
PS: I'm using Visual Studio 2015
Upvotes: 0
Views: 1292
Reputation: 2270
SQlite.Interop is not referenceable, you have to:
Upvotes: 0
Reputation: 200
I ran into the same issue recently and the key is in your first remark. There are multiple projects in your solution. If you use SqLite in a child project you need to install the package in your parent project as well otherwise the Interop DLL's can not be found. I have not (yet) gone to the step of publishing so don't know what will happen at that step.
Upvotes: 0
Reputation: 2487
if you installed Sqlite from nugets, you should have two folders who contains the Sqlite.Interop.dll in your debug or release folder.
..\bin\Debug\x86 or \bin\Debug\x64
you should choose the right version depending to your application's architecture.
I hope I was clear.
Upvotes: 1