control references with preprocessor directives

B

Bob

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

Thanks,
Bob
 
B

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
 
D

Duggi

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
 
B

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

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.
 
B

Bob

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

#define in C# 3
C# Preprocessor 2
code after preprocessor / macro 3
VB.Net missing preprocessor directives? 2
_MSC_VER 5
predefined preprocessor constants 2
xml,xlt, xsl 4
Define own directive? 3

Top