sqlite3 build automation and packaging. [Archived - see README]
This project has been archived because I no longer maintain or support this package. Please reach out to me https://github.com/natemcmaster/blog if you have questions or concerns.
Automates creating a NuGet package of SQLite3 native library for macOS, Linux, Universal Windows apps, and Windows.
Releases are published to https://www.nuget.org/packages/SQLite
Nightly builds are available on MyGet: https://www.myget.org/gallery/libsqlite3
.NET Framework and .NET Core apps can install this package and use SQLite via the C API and P/Invoke.
The installation of the package ensures that “sqlite3” is always available as a native component.
See https://www.sqlite.org/c3ref/intro.html for full reference on the SQLite C API.
Example:
public static class NativeMethod
{
[DllImport("sqlite3", CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr sqlite3_libversion();
}
string version = Marshal.PtrToStringAnsi(NativeMethod.sqlite3_libversion());
Used by: