[Mono-devel-list] Detecting Mono
Charlie Poole
cpoole at pooleconsulting.com
Sun Feb 15 14:02:21 EST 2004
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
path.
This is pretty kludgy and only of course depends on the location in which
I've installed Mono.
Any better suggestions?
Charlie Poole
cpoole at pooleconsulting.org
More information about the Mono-devel-list
mailing list