Reputation: 3644
I'm writing a library that is supposed to be cross-platform, but it needs different implementations depending on which platform I want to target. There's also a set of files that I want to include in the project for every target. How can I do this?
EDIT: It's also fine if I can target a specific .NET runtime (either Microsoft's .NET or Mono), and I've seen the option for this -- its in Build/General in the project options. I'm not sure this is what I need though.
ANOTHER EDIT: I'm thinking I could also use preprocessor if
s?
Upvotes: 0
Views: 741
Reputation: 11730
Take a look at http://www.mono-project.com/Guidelines:Application_Portability for general guidelines and isolate Mono-specific code for your fix.
Upvotes: 2