[Mono-devel-list] Detecting Mono
Gonzalo Paniagua Javier
gonzalo at ximian.com
Mon Feb 16 21:18:21 EST 2004
El dom, 15-02-2004 a las 20:02, Charlie Poole escribió:
> Hi All,
> I'm working under Windows to develop the next release of NUnit, and I'm
> testing under Mono as well as MS .NET.
> In order to be sure I'm running under mono in a particlular test execution,
> I'm using
> typeof( System.Object ).Assembly.CodeBase and looking for "Mono" in the
I would get the custom attributes of typeof (object).Assembly and, for
example, AssemblyProductAttribute is "MONO CLI".
More information about the Mono-devel-list