SQLite – conditional loading
I recently discovered that there is an option for conditional loading for System.Data.SQLite so there is
no more reason to publish x86 and x64 binary version of my software, just any cpu!
Some updates will be released in the future for .net binaries.
All you need to do is add the following to the “Post-build event command line“:
md “$(TargetDir)x86”
md “$(TargetDir)x64”
copy “$(SolutionDir)System.Data.SQLite\x86\SQLite.Interop.dll” “$(TargetDir)x86”
copy “$(SolutionDir)System.Data.SQLite\x64\SQLite.Interop.dll” “$(TargetDir)x64”