From 70c3d1b4db96258f6afe015939a51fa1d290e025 Mon Sep 17 00:00:00 2001 From: Tuomas Hietanen Date: Tue, 14 Feb 2017 10:10:00 +0000 Subject: [PATCH] Revert "Updated doc for SQLite, to reflect changes in System.Data.SQLite ver 1.0.104.0." This reverts commit 88bbdabedcd823fdec83a464a2afa0d06eff6b5c. --- docs/content/core/sqlite.fsx | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/docs/content/core/sqlite.fsx b/docs/content/core/sqlite.fsx index c37636e01..aa36d2be0 100644 --- a/docs/content/core/sqlite.fsx +++ b/docs/content/core/sqlite.fsx @@ -24,21 +24,26 @@ let connectionString = (** ### ResolutionPath -Typically, this parameter is not needed. It specifies the path to the directory where -`System.Data.SQLite.dll` is located. +Path to search for database vendor speficic assemblies. Specify the path where `System.Data.SQLite.dll` is stored. If you use the System.Data.SQLite NuGet package and target .NET 4.6, the path would be something like `__SOURCE_DIRECTORY__ + @"\..\packages\System.Data.SQLite.Core.\lib\net46"`. Both absolute and relative paths are supported. -Note that `System.Data.SQLite.dll` loads a native interop library, which it looks for in the following -directories: +Note that `System.Data.SQLite.dll` will look for the native interop library: - on Windows: `SQLite.Interop.dll` in the `x64` and `x86` subdirectories of the resolution path. - on Linux: `libSQLite.Interop.so` in the resolution path directory. -- alternatively in a directory specified in the "System.Data.SQLite.dll.config" file. -When adding the System.Data.SQLite NuGet package, the default "System.Data.SQLite.dll.config" -file ensures that finding the native interop library "just works". +The interop libraries are not properly placed afer the System.Data.SQLite NuGet package is added, so you might have to +manually copy the interop libraries: + +- on Windows: copy `x64` and `x86` subdirectories from SQLite build directory, which typically is + `\packages\System.Data.SQLite.Core.\build\net46`. +- on Linux: first build the `libSQLite.Interop.so` using `/Setup/compile-interop-assembly-release.sh` script from System.Data.SQLite + source distribution `sqlite-netFx-source-1.x.xxx.x.zip`. And then copy it from `/bin/2013/Release/bin/`. + +If `System.Data.SQLite.dll` is in the location where NuGet places it by default, you don't have to submit +the ResolutionPath parameter at all, but you still need to copy the interop libraries as described above. *)