[MonoDevelop] Equivalent to VSTUDIO_BUILD macro

Karthikeyan R karthikeyan_r at spanservices.com
Mon Nov 9 05:54:44 EST 2009


Hi All,

For Visual Studio there is a default macro (VSTUDIO_BUILD) which I will use to identify the app. is build from IDE or command line.

Is there any any equivalent macro available for Monodevelop IDE ?

My requirement is to write the code as follows,

#if VSTUDIO_BUILD
    Console.WriteLine("This is visual studio");
#elif MONO_BUILD    //assume that in mono the macro is MONO_BUILD
    Console.WriteLine("This is mono develop");
#else
    Console.WriteLine("This is must be command line");
#endif

Thanks in Advance,
Karthikeyan R
DISCLAIMER:

This email message and all attachments are  confidential and may contain information that
is privileged,  confidential or exempt from  disclosure under applicable law.  If you are
not  the intended  recipient,  you  are notified  that any dissemination, distribution or 
copying  of this email  is strictly prohibited. If you have received this email in error, 
please notify us immediately by return email or to mailadmin at spanservices.com and destroy 
the original message.

Opinions, conclusions, and other  information in  this message that  do not relate to the 
official business of SPAN, shall be understood to be neither given nor endorsed by SPAN.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20091109/b5f29033/attachment-0001.html 


More information about the Monodevelop-list mailing list