Nurdism
Nurdism

Reputation: 608

C# .net / mono cross-platform differences?

I've been searching for a while now trying to find an answer for this, basically if I create a visual studio app using .net c# and I want to port it to mac / linux,

  1. Will there be and code I'll have to move around/change when switching to mono?

  2. What things should I avoid doing while developing to make it easier to port later?

  3. Is system.windows.forms usable in mono? Should I just use GTK#? Does it matter?

Upvotes: 2

Views: 170

Answers (1)

Courtney The coder
Courtney The coder

Reputation: 147

  1. Not too much. but if your using any p invoke or library that do. they can't be used in mono. unless you rewrite/find a mono compatable one.
  2. Stay away from propriety software's and APIs. Directx does not work. but there are ports for SDL/Opengl. Only pinvoke tools that exist on all platforms. and dont make mixed mode assembly's.
  3. It is. but it does not look good on Linux/Mac. because well it looks like windows.

Upvotes: 1

Related Questions