oops didn't post to the list on this response. ---------- Forwarded message ---------- From: Joe Audette <[EMAIL PROTECTED]> Date: Jul 20, 2007 11:25 AM Subject: Re: [Mono-list] Mono Newbie Question To: Dave Moor <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]> 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 - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list > -- Joe Audette Software Solutions Architect Source Tree Solutions, LLC [EMAIL PROTECTED] http://www.sourcetreesolutions.com http://www.mojoportal.com -- Joe Audette Software Solutions Architect Source Tree Solutions, LLC [EMAIL PROTECTED] http://www.sourcetreesolutions.com http://www.mojoportal.com _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
