SQLite3.Native 3.50.4

Requires NuGet 3.3 or higher.

dotnet add package SQLite3.Native --version 3.50.4
                    
NuGet\Install-Package SQLite3.Native -Version 3.50.4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SQLite3.Native" Version="3.50.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SQLite3.Native" Version="3.50.4" />
                    
Directory.Packages.props
<PackageReference Include="SQLite3.Native" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SQLite3.Native --version 3.50.4
                    
#r "nuget: SQLite3.Native, 3.50.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SQLite3.Native@3.50.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SQLite3.Native&version=3.50.4
                    
Install as a Cake Addin
#tool nuget:?package=SQLite3.Native&version=3.50.4
                    
Install as a Cake Tool

SQLite3.Native

A NuGet package that provides native SQLite3 DLL libraries for Windows platforms (x86, x64, ARM64) designed for use with P/Invoke in C# projects.

SQLite

Overview

This package contains pre-compiled SQLite3 native libraries for Windows that enable C# applications to use SQLite through Platform Invoke (P/Invoke) calls. It's specifically designed to work with sqlite-net-static which provides the C# wrapper and ORM functionality.

Supported Platforms

  • Windows x64 (win-x64)
  • Windows x86 (win-x86)
  • Windows ARM64 (win-arm64)

Installation

Install both packages via NuGet Package Manager:

dotnet add package SQLite3.Native
dotnet add package sqlite-net-static

Or add to your project file:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net6.0</TargetFramework>
  </PropertyGroup>
  
  <ItemGroup>
    <PackageReference Include="sqlite-net-static" Version="1.8.116" />
    <PackageReference Include="SQLite3.Native" Version="3.50.4" />
  </ItemGroup>
</Project>

How It Works

  1. SQLite3.Native provides the native sqlite3.dll files for each supported Windows platform
  2. sqlite-net-static provides the C# API and P/Invoke declarations to call into the native SQLite library
  3. The MSBuild integration automatically copies the correct native DLL to your output directory based on your target platform

Usage Example

using SQLite;

// Create a database connection
var db = new SQLiteConnection("MyDatabase.db");

// Create a table
db.CreateTable<Person>();

// Insert data
db.Insert(new Person { Name = "John", Age = 30 });

// Query data
var people = db.Table<Person>().ToList();

public class Person
{
    [PrimaryKey, AutoIncrement]
    public int Id { get; set; }
    public string Name { get; set; }
    public int Age { get; set; }
}

What's Included

  • Native SQLite3 DLL libraries for Windows platforms
  • Definition files (.def) for each platform
  • MSBuild props file for automatic DLL deployment
  • Platform-specific runtime targeting

Version Information

  • Current Version: 3.50.4
  • SQLite Version: Based on official SQLite releases
  • License: MIT

Requirements

  • .NET projects targeting Windows platforms
  • Compatible with .NET Framework, .NET Core, and .NET 5+

Repository

License

This package is released under the MIT License.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.50.4 126 9/4/2025
3.45.2 199 2/18/2024