title: Visual Studio C# - SQLite.Interop.dll not found
body: <p>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 Solution Explorer (System.Data.SQLite, System.Data.SQLite.EF6, System.Data.SQLite.Linq).</p>
  <p>When I execute my app in VS, everything works fine. However, whenever I publish it (with ClickOnce) and try to run the app, it crashes with the following error :
  <strong>System.DllNotFoundException : Unable to load DLL 'SQLite.Interop.dll' : the specified module cannot be found (Exception from HRESULT : 0x8007007E)</strong></p>
  <p>After some research, I found this dll in the Debug folder and copied it in the folder where the &quot;.exe&quot; version of my program is created (after publishing and executing &quot;setup.exe&quot;). This way, the app runs well.</p>
  <p>But I'm not really satisfied with this solution, since it seems really dirty. I don't want future users to have to do this manually when they install my app !</p>
  <p>Therefore, my question is : What can I do to make sure that this dll is installed together with my program ?</p>
  <p><em>Note : I tried the first answer of this post :
  <a href="https://stackoverflow.com/questions/27678554/unable-to-load-dll-sqlite-interop-dll-wpf">unable to load dll sqlite interop dll WPF</a>
  But I didn't seem to work for me.</em></p>