c# - Solution-wide #define -


is there way globally declare #define?

like want have file has instance,

#define mono 

and want source-code files know pre-processor directive defined. how achieve that?

update: cannot "solution-wide" define afaik, answer below workable on per-project basis.

you set them in compilation properties or build options:

http://msdn.microsoft.com/en-us/library/76zdzba1(v=vs.80).aspx (vs2008) http://msdn.microsoft.com/en-us/library/76zdzba1(v=vs.100).aspx (vs2010)

see "to set custom constant" heading.

update

microsoft documentation on build options

you build options right-clicking project , selecting properties menu.

project build options


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -