[MonoDevelop] Compile conditionally on MonoDevelop

thenextman richard at ayudasystems.com
Wed Apr 13 09:29:40 EDT 2011


Hi

I am working on a MonoTouch project. The project is a port of an existing
.NET app, all code is written in VS and managed in our TFS.

I have managed to get a great workflow going: I have my MonoTouch project
inside my solution, and they link to existing code files. I can work on and
build (the libraries at least, not the actual .app) in VS. When I'm ready to
build and run my code, I checkout on my Mac using the TF command line client
and build and run in MonoDevelop.

The problem: I have some WCF code that uses stuff from the Silverlight WCF
stack. This compiles in MD (because, the MonoTouch version of
System.ServiceModel is based on the Silverlight profiles). However, on VS
this does not compile - because it looks at the 'full' System.ServiceModel,
which doesn't expose the class I am using.

If I comment out the offending method on VS, it works fine.

So: anyway to conditionally compile that method only when building on
MonoDevelop? Does MD define some additional compilation symbols that I can
tap into?

Thanks in advance

--
View this message in context: http://mono.1490590.n4.nabble.com/Compile-conditionally-on-MonoDevelop-tp3447163p3447163.html
Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.


More information about the Monodevelop-list mailing list