Hi all, I'm in the process of porting a .NET app to Mono, but I need it to also still compile and run with the standard .NET tools. There are just a couple points in the code where I need to do something different in order to make the app work with Mono.
I'd like to be able to write something like: if ( ThisIsMono() ) DoMonoCode() else DoNormalCode() What I'm missing is ThisIsMono - is there any way to detect whether the application is being run by Mono, without having to import any Mono-related library? (The app must still compile and run on a non-Mono machine). I dunno, some way to detect the .NET runtime version? Sorry if the answer is trivial - I'm a Mono noob. ^^ Thanks for any help. :) -- View this message in context: http://www.nabble.com/Detecting-mono-at-runtime-tp17530408p17530408.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
