[Mono-list] Fwd: Mono Newbie Question

Ernesto Bascon ebasconp at gmail.com
Fri Jul 20 14:31:05 EDT 2007


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

I suppose that #if() is a preprocessor directive and it guides the way
the compiler is going to generate the code; isn't it?

Anyway, there are some programmatical way to know (through a class or
method) what is the platform where my application is running on (e.g.:
"Windows, .NET 2.0, x86 " or "Solaris, Mono 1.2.4; x86_64") in order
to load some platform specific classes?

Something like:

if (SystemInfo.Platform == SystemPlatform.Solaris)
  Assembly a = Assembly.Load("Solaris.dll");

kind regards,



Ernesto


> > 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
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>


More information about the Mono-list mailing list