you'll need system.data.sqlite.dll not just sqlite3.dll. I prefer to use the static version so system.data.sqlite.dll contains the sqlite3.lib so it's standalone other than the runtime used. (I've sometimes had to copy msvc*d.dll (debug version) because I'm sometimes lazy and know that it has worked under debug mode)
On Fri, Dec 18, 2015 at 12:51 AM, Nils Westerberg <nilsw1 at yahoo.fr> wrote: > Hello, > I have a Universal app with SQLite using sqlite-net and referencing SQLite > for Universal App Platform that works. I am using VS 2015 update 1, Windows > 10. > I am trying to make a console application using sqlite-net but I cannot find > a valid reference to SQLite. I have installed SQLite for Universal Platform, > for Windows Runtime and for Windows Runtime (8.1) via Visual Studio > Tools.Extensions and Updates... The References.Add Reference... does not show > any SQLite Package as it does for the Universal app. > I used References.Manage NuGet Packages to install System.Data.SQLite which > updated the references. Running the application gives: "Unable to load DLL > sqlite3: The specified module could not be found."I have tried to reference > SQLite in other downloads from ??System.Data.SQLite but I get the same error. > > Adding sqlite3.dll to the load path gives: "Unable to load DLL sqlite3: This > operation is only valid in the context of an app container." > What can I do? I have asked the question on Microsoft Developer Network as I > thought to be more a VS problem but a moderator (Fred Bao) suggested that I > ask the SQLite forum. > > Nils > _______________________________________________ > sqlite-users mailing list > sqlite-users at mailinglists.sqlite.org > http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users