[Mono-list] Determining runtime environment

John Barnette jbarn@httcb.net
Sat, 30 Mar 2002 22:12:06 -0700


At 08:26 PM 3/30/2002, Brad Wilson wrote:
>Has any thought been placed into how to determine what your runtime
>environment is? For example, I'm working on extending the NAnt file-list to
>be able to search for files on the PATH. Without knowing if I'm on Unix or
>Windows, though, I won't know how to properly split the PATH env var.
>
>Is there a way (yet) to tell your operating environment from within C#?

Brad,

Take a look at System.Environment.OSVersion.


~ j.