0

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 ifs?

Jwosty
  • 3,497
  • 2
  • 22
  • 50

1 Answers1

2

Take a look at http://www.mono-project.com/Guidelines:Application_Portability for general guidelines and isolate Mono-specific code for your fix.

Community
  • 1
  • 1
Robert H
  • 11,520
  • 18
  • 68
  • 110