SQLite issue in WPF.

Home Forums Bugs SQLite issue in WPF.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1204
    Klea Haka
    Participant

    Problem: In a WPF project, the wrong package SourceGear.sqlite3 was installed. This package does not support Any CPU builds and caused a compilation error:

    “This package does not support Any CPU builds”

    Cause: SourceGear.sqlite3 is not the standard SQLite package for .NET, but an old implementation related to Subversion.
    Solution:

    Remove the incorrect package:

    Uninstall-Package SourceGear.sqlite3
    or via NuGet Package Manager in Visual Studio.
    Install the correct package for WPF/desktop:

    Install-Package System.Data.SQLite.Core

    Use the proper namespace:

    using System.Data.SQLite;

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.