[Mono-list] Mono Newbie Question

Dave Moor dave at ducks-n-tworms.co.uk
Fri Jul 20 11:12:55 EDT 2007


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 :)



More information about the Mono-list mailing list