system.data.sqlite .net 4
Is there a .Net 4 version of System.Data.SQLite?
At the moment I get this error:
Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.
What is the "additional configuration information" that is needed, or alternatively is there another version that I can use?
Solution 1:
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
</configuration>
Solution 2:
According to the forums of PhxSoftware:
It's not high on my priority list right at the moment. When VS2010 comes closer to release I'll be updating the library to work with it.
Although the message was posted in october 2009 there are some workarounds.
Further there seems to be an updated (temporary) version specially for .NET 4:
Solution 3:
Yes, there is now.
http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki
And you can use NuGet to install it as well. With nuget, its easy to choose between x86/x64/both, http://www.nuget.org/packages?q=system.data.sqlite .