[Mono-list] Detect OS using mono framework

Oleg Deribas thisaddressisnotmine at td.selfip.net
Thu Mar 27 00:06:35 EDT 2008


Hi,

Scott Graves wrote:

> I now have a requirement to execute a method based on the targeted OS. 
> As of today, the code is 100% portable across OS X, Linux, and Wn32. 
> Using the mono framework, is there a way to determine this by using a 
> Conditional attribute or any other means?

Partially it is described here:
http://mono-project.com/FAQ:_Technical#How_to_detect_the_execution_platform_.3F

-- 
Oleg



More information about the Mono-list mailing list