Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

system.data.sqlite .net 4

Tags:

.net

sqlite

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?

like image 681
Behrooz Avatar asked Apr 09 '10 06:04

Behrooz


3 Answers

<configuration>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0"/>
  </startup>
</configuration>
like image 172
Darin Dimitrov Avatar answered Oct 20 '22 20:10

Darin Dimitrov


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:

like image 35
Rhapsody Avatar answered Oct 20 '22 18:10

Rhapsody


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 .

like image 3
deerchao Avatar answered Oct 20 '22 19:10

deerchao