[MonoDevelop] Equivalent to VSTUDIO_BUILD macro
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,
> #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");
> Console.WriteLine("This is must be command line");
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.
More information about the Monodevelop-list