The Common Language Runtime from version 3.0 onward uses a different method to load a mixed-mode assembly (one containing both managed and native code) like SQLite. Since SQLite was built against the .NET Framework 2.0, we have to specifically tell the CLR to use the old 2.0 way of loading mixed-mode assemblies: Add (or update) app.config in your project:
Other questions also reveal more information on this: SQLite-specific / generic explanation |
|
来自: goodwangLib > 《C#》