<ne***************@charter.netwrote:
Is there a way with Visual Studio 2003 and 2005 to list the name a value of
compile time constants like those created with #define statements.
Right now I have the need to use the same C# code in 2003 and 2005 and need
to know which version is doing the work. I could create one but if there is
already one there I would rather use it.
The "pre-processor" symbols in C# don't have values. However, you could
do:
#if VS2003
const int Version = 2003;
#else
const int Version = 2005;
#endif
I don't believe there's anything in the default project settings to
define "VS2003" or anything like that, but you can easily put them in.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too