Click to See Complete Forum and Search --> : [RESOLVED] Checking out Mono


Etherous
April 21st, 2009, 05:05 PM
So, I'm thinking about checking out C# Mono, and possibly incorporate it into a project I'm working on. As far as using C# as a platform independent programing language, what should I know, what are the things I need to avoid, understand, etc.

compavalanche
April 21st, 2009, 06:40 PM
I've heard it works pretty well if you stick to standard stuff.

However we tried to run it at work where we have a large Linux farm and it doesn't work well in that environment as each machine is configured a little differently. And we don't use a standard Linux distribution we use a hacked up one.

For cross platform code I still use Java, I stick with C# for windows only.

Hope that helps

Mutant_Fruit
April 21st, 2009, 06:50 PM
You don't have to remember anything special, the usual rules apply:

Don't P/Invoke windows only APIs.
Don't hardcode paths - Use Path.Combine, Environment.GetSpecialFolder and friends
Case sensitivity can matter - don't mix up your casings.

I'm sure there are more, but those are the most common ones.

Etherous
April 21st, 2009, 08:44 PM
Okay, thanks guys. So I should basically just look out for the usual, obvious stuff.