Pergunta

So I was working on a Windows CE 3.5 project with SQLite and noticed I could not multi thread with this version. I downloaded and installed Setups for 64-bit Windows (.NET Framework 3.5 SP1) from http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki

I copied the below to my project library and made a reference to the System.Data.SQLite.dll and Linq even though im not using Linq. Then I cleaned my project and rebuilt only to recieve these errors. Anyone have any Idea how to fix this problem?

System.Data.SQLite.dll
SQLite.Interop.dll
SQLite.Designer.dll
System.Data.SQLite.Linq.dll

enter image description here enter image description here

Foi útil?

Solução

The public key token you're seeing (b77a5c....) indicates that you referenced a desktop assembly. This will not work for a Compact Framework application. You must use a SQLite assembly that was specifically built for Windows CE/Compact Framework. It will have a reference to mscorlib, etc that have a public key token of 969db8...;

Outras dicas

It wants the System.Data Version 2.0.0.0. The reference you have is Version 3.5.0.0.

The problem is that there is some other dll in your references which explicitly refrences 2.0.0.0. You need to find it and replace it with a correct version

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top