SQLite Visual Studio 2008

0

I'm trying to work with SQLite in Visual Studio 2008 to make a system for Windows Embedded Compact 7. The problem is that it always gives the following error:

A first chance exception of type 'System.MissingMethodException' occurred in System.Data.SQLite.dll
An unhandled exception of type 'System.MissingMethodException' occurred in System.Data.SQLite.dll   
Additional information: Can't find PInvoke DLL 'SQLite.Interop.066.DLL'.

No matter what I do, I've downloaded and tested several DLL's. I can add the DLL System.Data.SQLite as a reference, but when trying to add SQLite.Interop.066.DLL it generates the following error:

A reference to 'SQLite.Interop.066.DLL' could not added.

I also tried to put the DLL's in the folder along with the executable in the emulator (Windows Embedded Compact 7), but also to no avail.

Has anyone worked with SQLite in VS 2008 could you help me please? Step-by-step add-on: D

    
asked by anonymous 22.01.2018 / 20:10

1 answer

0

This SQLite.Interop.066.DLL Library is a library for PInvoke, you do not reference it, but include it to be distributed in your application directory.

To include it, put it inside your project:

  • Right click on your project and go to "Add" - > "Existing Item";
  • Select the file SQLite.Interop.066.DLL ;
  • After included in the project, right click on the file and go to "Properties";
  • In "Build Action" select the "Compile" option;
  • In "Copy to Output Directory" select the "Copy aways" option;
  • 23.01.2018 / 14:01