468,511 Members | 1,546 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,511 developers. It's quick & easy.

Conditional compilation constants in VS.NET 2002


I want to build two assemblies that use common c# code.
I wish to use preprocessor.

I defined a constant YABA in "Conditional compilation constants" in the
property pages.
So the line looks like this: DEBUG;TRACE;YABA

Then in my code I have:

#if (YABA)
private int hut;

The line "private int hut;" does NOT execute. I tried to change it to random
string and there was no error. The code ignored this line.

This works fine in VS.NET 2003.

Is this a bug or am I doing something wrong?

Please reply and thanks a lot in advance


Jul 21 '05 #1
0 1131

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by chris han | last post: by
12 posts views Thread by wanghz | last post: by
5 posts views Thread by Trapulo | last post: by
reply views Thread by Victor Irzak | last post: by
4 posts views Thread by Bob | last post: by
10 posts views Thread by Dave | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.