SQLite with VS2012 and .NET 4.5 — ANY CPU Build

前端 未结 1 2031
眼角桃花
眼角桃花 2020-12-19 04:03

I\'ve tried looking through the answers for related questions, but haven\'t found anything that isn\'t a few years old (unsure if they are still the go-to answer) or that an

相关标签:
1条回答
  • 2020-12-19 04:23

    Yes. Just use the NuGet package System.Data.SQLite. It will install an x86 and x64 subdirectory into your project and, when compiled, into your bin. The 32 bit and 64 bit interop DLLs are copied into those and selected appropriately at runtime based on your CPU. So you build with "Any CPU" selected and can run your application on 32 or 64 bit Windows.

    0 讨论(0)
提交回复
热议问题