On Feb 7, 1:26 pm, guy <g...@discussions.microsoft.com> wrote:
> I am working on an app with a large group of others. I have written the
> classes required and currently the public methods on them return 'true' or
> another sensibel value. This allows the other developers to code using my
> classes while i continue working on them.
>
> What I would like to do is use conditional compilation to cause ome code to
> only be compiled if it is run by me or on my box - either would be ok.
>
> While I know how to use #define, #if etc. is there a way of saying something
> like:-
>
> #If ThisIsMybox
> ...
> #endIf
>
> or
> #If ThisIsMe
> ...
> #endif
Sounds like you want a new build configuration that defines some token
or other, then use #if with that. Tell other people not to select that
build configuration.
Jon
|