Re: Where to put global compiler directives?
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Mon, 9 May 2005 22:12:50 +0100
Selden McCabe <seldenm@xxxxxxx> wrote:
> I would like to have a compiler directive to switch on or off some code in
> several different places.
>
> Is it possible to define a compiler directive (#define BUILD_RESOURCES)
> somewhere and have it apply to all forms and classes? I tried putting it
> at the top of global.asax, but that didn't work.
You need to put it in the project properties for each configuration you
want it to apply to.
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
.
- References:
- Where to put global compiler directives?
- From: Selden McCabe
- Where to put global compiler directives?
- Prev by Date: Re: Error Reading the Security Log
- Next by Date: Re: import dll c++ function
- Previous by thread: Re: Where to put global compiler directives?
- Next by thread: Getting Assembly Name
- Index(es):
Relevant Pages
|