control references with preprocessor directives

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

Hi,
Is it possible to change the references in a project by using
preprocessor directives?

Thanks,
Bob
 
In what way is this question different from the last time you asked it?

It is not at all different. I have no idea where that thread is, I
thought that google lost it. When I look under my profile there is
nothing and when I search for preprocessor directives I get nothing.
If you could point me to the thread I'm sure it would answer the
question.

Thanks,
Bob
 
Hi,
Is it possible to change the references in a project by using
preprocessor directives?

Thanks,
Bob

I think you can do something like the below for referencing the
namespace.

#if SYMBOL
using System.Collections;
#endif

however referencing dll is a compile time option not included in the
code.

It would be your choice to include a perticular dll in /r option or
not.

-Cnu
 
I think you can do something like the below for referencing the
namespace.

#if SYMBOL
using System.Collections;
#endif

however referencing dll is a compile time option not included in the
code.

It would be your choice to include a perticular dll in /r option or
not.

-Cnu

Thanks for your response. The problem I am having is with different
versions of Excel that have same name so I want to be able to have one
build for release 11 and another for release 12. They have the same
"using" name so the first option won't work. I don't follow your
second suggestion.
 
I have no idea why the thread doesn't appear on Google.  I'd say they  
probably did lose it.  The thread is on my own news server though and  
probably on other more-reliable ones.  You might try an alternate news  
server; Google is definitely not the most reliable around.

In the meantime, see below for the two replies to your original question.

Pete

Thanks very much! What is a better news server?
 
Back
Top