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 8250527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:55:20+00:00 2026-06-07T23:55:20+00:00

I’m trying to share all my business logic code across three applications: an android

  • 0

I’m trying to share all my business logic code across three applications: an android app, an iOS app, and a Winforms app. All three of these applications need access to a local Sqlite database, and I had assumed I could use Mono.Data.Sqlite for all three to accomplish this.

So, I’ve setup an Android class library along with a regular .NET class library, and linked the projects together. This works fine for everything except the Sqlite code. Am I not able to merely reference Mono.Data.Sqlite.dll and have it work in the Winforms application? If I do, it still doesn’t fix the following errors:

The type or namespace name ‘SqliteConnection’ could not be found (are you missing a using directive or an assembly reference?)

The type or namespace name ‘SqliteDataReader’ could not be found (are you missing a using directive or an assembly reference?)

Now, I would think adding a reference to the Mono Sqlite DLL would have resolved that issue, but apparently not. It can’t even find the Mono namespace itself.

I am thinking that I may need a Mono.Data.Sqlite DLL that has been compiled specifically for Windows, and not Android. Is this correct? If so, can I find a pre-compiled binary somewhere (preliminary searches returned nothing useful).

Or will I have to write a wrapper for the SQLite code so that it just uses System.Data.SQLite in the Winforms app (which I am hoping to avoid, as the methods differ)? Will I have to do the same when deploying to MonoTouch? Is this going to be the case for almost all of the Mono framework?

I’m just trying to wrap my head around codebase sharing with Mono and how it applies to multiple platforms. This is my first major hurdle so far. My goal is to have essentially one codebase for all the logic, and then just write native UI code for each platform.

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-06-07T23:55:22+00:00Added an answer on June 7, 2026 at 11:55 pm

    You can use Mono.Data.Sqlite on the desktop as well, but you probably want to reference the desktop version not the M4A version.

    Simplest way to get it may be to download and install Mono on your desktop can grab the DLL from the install directory.

    Note that your exact scenario does work, it’s what we do. We have a desktop DALC class library project, referencing the regular Mono.Data.Sqlite with all our data access code.

    Next we have MonoTouch and Mono4Android projects in the same solution. They reference the platform versions of the Mono.Data.Sqlite assembly, and all our source files are simply linked in.

    So we have one code base, and three assemblies (one for each platform).

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
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
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to render a haml file in a javascript response like so:
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have a text area in my form which accepts all possible characters 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.