SQLite reference processor mismatch

I just changed from SQL server to SQLite, everything went fine, everything works fine, the only thing that bothers me is that I get a mismatch warning with the SQLite link below the warning message:

Warning 1 A mismatch was found between the processor architecture of the built project "MSIL" and the processor architecture of the link "System.Data.SQLite, Version = 1.0.84.0, Culture = neutral, PublicKeyToken = db937bc2d44ff139, processorArchitecture = x86", "x86". This mismatch may cause runtime errors. Please consider changing the target processor architecture of your project to run through Configuration Manager to align the processor architecture between your project and the links or the link dependency with the processor architecture that matches the target processor architecture of your project. LivePigeonClient

Did I set the wrong link? Or do I really need to set the goal of my x86 application? Since this is not what I want, does anyone have any suggestions on what to do to get rid of this warning?

Thank you for your time!

+4
source share
2 answers

If you want to use this ADO.NET connector, you will need to specify the architecture of your program. This is due to the fact that this assembly is a mixed-mode assembly - it contains its own code and, therefore, cannot work under other architectures. If you do not specify an architecture for your executable, the runtime will use a 64-bit instance on 64-bit machines, and the referenced assembly will not load.

+6
source

Install the Nuget package "System.Data.SQLite (x86 / x64)" to resolve this warning.

+4
source

All Articles