[Mono-list] IDE suited for Corss Platform Development work

Kornél Pál kornelpal at hotmail.com
Mon Jul 4 16:23:56 EDT 2005

>> I cannot just copy libraries compiledin windows to linux, because i am
>> using perf counters (and other stuff) in the code so in mono they will
>> give NotImplemented exception so i have to " #if " that code out in
>> Linux.
>We're distinguishing the system we're running on at runtime to
>use the same assemblies anywhere. So we can use different
>functionality on both systems without problems.
>Maybe that's an option for you too?

I agree with you. It's better to have single assembly and use runtime if
instead of #if.

Mono has a good solution: Create a common interface and wrapper classes for
each platform specific functionality. This will result in faster execution
and more reliable code as you will have to use if to determine the runtime
environment only when creating the wrapper class.

And you can use wrapper classes that do nothing on Linux for Windows-only

Even when using #if you can compile all of the assemblies of Windows. Just
create configurations and define the appropriate constants. So you have to
use IDE on Linux only if you don't want to use Windows or Visual Studio


More information about the Mono-list mailing list