[Mono-list] Fwd: Mono Newbie Question

Joe Audette joe.audette at gmail.com
Fri Jul 20 13:55:31 EDT 2007


oops didn't post to the list on this response.

---------- Forwarded message ----------
From: Joe Audette <joe.audette at gmail.com>
Date: Jul 20, 2007 11:25 AM
Subject: Re: [Mono-list] Mono Newbie Question
To: Dave Moor <dave at ducks-n-tworms.co.uk>


Hi Dave,

This System.Data.SQLite you are using is not part of the .NET
framework, it is a third party library. You may be able to use it on
Mono.

Alternatively you could use the Mono.Data.Sqlite on Windows. I'm using
it in my project mojoPortal and it works great on windows. I grabbed
the source code from the mono project and created my own VS 2005
project, there were a few needed compiler directives.
You can get my copy of this project using TortoiseSVN from:
https://forgesvn1.novell.com/svn/mojoportal/trunk/Mono.Data.Sqlite

Then if you change your code to use this instead of the one you are
using you can be sure it will work also on Mono.

Then again, its possible the library you are already using will work.

Hope it helps,

Joe

On 7/20/07, Dave Moor <dave at ducks-n-tworms.co.uk> wrote:
> Hi
>
> My company has a Windows Service written on .Net v2 which I am trying to
> get working on Mono running in Linux.
>
> I have one problem.  I'd like to keep the same project and source files
> for both but the service uses the windows ADO.Net provider.  Is there a
> way I can identify in the project file and source files that I am
> compiling against the Mon framework.
>
> My main issue is .net uses System.Data.SQLite and mono uses
> Mono.Data.Sqlite so I could do with knowing if there is a global default
> compilation symbol like MONO so I can use #if() to select which
> namespace to use.  I realise I also need to do the same in the project
> files reference section which may scupper my plans completely :)
>
> Thanks
>
> Dave
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>


--
Joe Audette
Software Solutions Architect
Source Tree Solutions, LLC
joe.audette at gmail.com
http://www.sourcetreesolutions.com
http://www.mojoportal.com


-- 
Joe Audette
Software Solutions Architect
Source Tree Solutions, LLC
joe.audette at gmail.com
http://www.sourcetreesolutions.com
http://www.mojoportal.com


More information about the Mono-list mailing list