Note that there are some explanatory texts on larger screens.

plurals
  1. POBuilding System.Data.SQLite from Source, Builds with Target Framework 4.0
    text
    copied!<p>I'm trying to build System.Data.SQLite in Visual Studio using the source code downloaded from </p> <p><a href="http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki" rel="nofollow">http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki</a></p> <p>I was able to build the solution, but when I tried to reference the System.Data.SQLite.dll from a project with TargetFramework=3.5, I received the following message:</p> <blockquote> <p>"System.Data.SQLite.dll or one of its dependencies, requires a later version of the .NET Framework than the one specified in the project."</p> </blockquote> <p>I noticed that their managed projects (System.Data.SQLite.2010, System.Data.SQLite.Linq.2010, and System.Data.SQLite.Module.2010) were all set to target .NET 4.0. I then changed all of them to reference 3.5, rebuilt, and tried again. I was then able to reference the project, however I receive a new runtime error:</p> <blockquote> <p>"Could not oad file or assembly 'System.Data.SQLite' or one of its dependencies. This assembly is build by a runtime newer than the currently loaded runtime and cannot be loaded."</p> </blockquote> <p>I opened the .dll using ildasm , and the manifest indeed says // Metadata version: v4.0.30319 This doesn't make sense to me because their documentation clearly states that it should work with .NET 2.0: </p> <blockquote> <p>".We want to ship managed binaries that rely on the .NET Framework 2.0 SP2 (or for the LINQ assembly, the .NET Framework 3.5 SP1). The .NET Framework 2.0 is very widely deployed and binaries produced for it can also be referenced and used successfully from projects using the .NET Framework 4.0. "</p> </blockquote> <p><a href="http://system.data.sqlite.org/index.html/doc/trunk/www/build.wiki" rel="nofollow">http://system.data.sqlite.org/index.html/doc/trunk/www/build.wiki</a> </p> <p>This solution is kind of a nightmare, with lots of target files and tons of customized build options. I'm not quite certain where the target frameworks are being set. I assume there's some magic happening somewhere. </p> <p>Does anyone have any experience building this project? Any help would be appreciated. Thanks!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload