Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6829233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:28:36+00:00 2026-05-26T22:28:36+00:00

I’m trying to build System.Data.SQLite in Visual Studio using the source code downloaded from

  • 0

I’m trying to build System.Data.SQLite in Visual Studio using the source code downloaded from

http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki

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:

“System.Data.SQLite.dll or one of its dependencies, requires a later
version of the .NET Framework than the one specified in the project.”

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:

“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.”

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:

“.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. “

http://system.data.sqlite.org/index.html/doc/trunk/www/build.wiki

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.

Does anyone have any experience building this project? Any help would be appreciated. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:28:37+00:00Added an answer on May 26, 2026 at 10:28 pm

    The key to building the System.Data.SQLite solution in Visual Studio 2010 targeted at v3.5 is knowing that VC++ projects (SQLite.Interop.2010 and SQLite.Interop.Static) are targeted to framework version 4.0 by default. While you correctly targeted v3.5 on the C# projects (System.Data.SQLite.2010 and System.Data.SQLite.Linq.2010), it probably wasnt clear how to flip the targeted version for VC++ projects.

    The suggested approach from Microsoft for changing framework versions in VC++ is to unload the project from Visual Studio 2010. Then break out a text editor, find your .vcxproj in the solution directory, and insert a TargetFrameworkVersion tag with a value of “v3.5” into the “Globals” PropertyGroup tag. After re-loading the project in Visual Studio 2010, you should now see version=3.5 in the Framework and References section of the project’s properties. Reference Link

    For System.Data.SQLite, you’ll have to do this operation for both VC++ projects (SQLite.Interop.2010 and SQLite.Interop.Static). NOTE: if you attempt to target VC++ projects to framework version 3.5 in Visual Studio 2010, you’ll also need to have Visual Studio 2008 SP1 (VC 9.0) installed. Additonally, if you want to compile for x64 in VC++ 2010 on framework version 3.5, you’ll need to have the x64 compiler and tools installed in Visual Studio 2008 SP1 (VC 9.0) (not installed by default).

    After the recompile, ildasm should show “Metadata version: v2.0.50727” in the Manifest for System.Data.SQLite.dll

    I did notice that after flipping the VS2010 solution to framework version 3.5 that there were some new build errors in System.Data.SQLite.Linq.2010 due to how the author is referencing “Properties” resources (i.e. Resources.resx) in the code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're building an app, our first using Rails 3, and we're having to build
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I am currently running into a problem where an element is coming back from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.