[MonoDevelop] Equivalent to VSTUDIO_BUILD macro

Michael Hutchinson m.j.hutchinson at gmail.com
Sun Nov 15 17:55:17 EST 2009

On Mon, Nov 9, 2009 at 5:54 AM, Karthikeyan R
<karthikeyan_r at spanservices.com> wrote:
> 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,
>     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

There is no such define in MD.

I'm curious why you need it, because CIL binaries are portable, hence
it shouldn't matter where you build the app, so depending on such
defines is a bad habit IMO.

However, if you can make a good case this, we'll consider adding it.

Michael Hutchinson

More information about the Monodevelop-list mailing list