System.Data.SQLite

Build Procedures
Login

Building System.Data.SQLite

Prerequisites: version 8.0 (or higher) of the .NET SDK

To build the SDS assembly from the command line, simply cd into the System.Data.SQLite directory and type:

    dotnet build

By default, this does a debug build. Standard arguments for dotnet build apply.

To build as a nuget package, type:

    dotnet pack

Note that dotnet pack does a release build by default.

The same commands work in the System.Data.SQLite.Linq directory to build EF6 support.

Obtaining the SQLite C code as a shared library

System.Data.SQLite requires a regular SQLite shared library with "e_sqlite" as its base name. That means, for example, on Windows, the name would be "e_sqlite3.dll", and on Linux it would be "libe_sqlite3.so".

Unless you need a build which includes additional extensions compiled in, on Windows, you can simply download the standard sqlite3.dll (from https://sqlite.org/download.html) and rename it to e_sqlite3.dll.

If you want to build your own SQLite library for use with SDS, simply follow whatever procedures you would normally use to build a shared library in C, and use e_sqlite3 as the base name of the linker output.

For convenience, various nuget packages are available. The following packages contain SQLite builds with the necessary "e_sqlite3" base name:

For SEE licensees, similar packages are available from SourceGear as part of a paid service. Contact eric@sqlite.org for more information.