Hi, Thanks for the advice. I'm running on Windows too, so Environment.OSVersion alone doesn't completely solve the problem (though it helps). Environment.Version contains the CLR version, but it doesn't say if it's Mono or Microsoft. I've checked the other fields of Environment but I can't see anything useful. It looks like MS didn't think that people would want to make different implementations of the CLR. FP
Thierry Baertschiger wrote: > > Hi > > If you run mono only on Unix/Linux, then "ThisIsMono" could be a simple > test : > > return Environment.OSVersion.Platform == PlatformID.Unix; > > But if you run mono on Windows as well... I don't know. > > Thierry > -- View this message in context: http://www.nabble.com/Detecting-mono-at-runtime-tp17530408p17554801.html Sent from the Mono - General mailing list archive at Nabble.com. _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
