0

I have SQLite in my app that I pulled using NuGet. It is version 1.0.108. Is this anyCPU or is it 32-bit? There are many posts discussing that the DLL is bit specific.

dumpbin says it's 32-bit DLL. But my app (set to anyCPU) runs fine in 64-bit mode calling sqlite.dll.

Is this no longer an issue and it now can be called from either mode?

NuGet: System.Data.SQLite.Core by SQLite Development Team version: 1.0.108 Description: The official SQLite database engine for both x86 and x64 along with the ADO.NET provider.

enter image description here

David Thielen
  • 28,723
  • 34
  • 119
  • 193
  • There are many SQLite packages on NuGet.org, so please be specific on which one (and its version) you are using. – Lex Li Sep 17 '18 at 17:04
  • @LexLi - added to the question. Please let me know if you need more info. thanks - dave – David Thielen Sep 17 '18 at 17:10
  • It is very bad that those guys don't use a service like GitHub to host the code publicly for easy navigation, but if I remember correctly, their code base changed significantly in the past. Initially they had two assemblies for x86/x64 (C++/CLI), which is why many old threads said that you must use the proper one, and then after a while they figured out a way to use a single assembly for both (to load native dependencies automatically). As you are using the latest, what you observed can be expected. – Lex Li Sep 17 '18 at 17:15
  • BTW, if I were you I might use Microsoft's implementation, https://www.nuget.org/packages/Microsoft.Data.Sqlite/ – Lex Li Sep 17 '18 at 17:18

0 Answers0