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;