/define project compiler not being recognized (vstudio 2005)
-
I have edited project options Build-> "Conditional compilation symbols" /define:CLASSTEST In my main function i have>> namespace ConsoleApplication1 { class Program { static void Main(string[] args) { #if (CLASSTEST) Console.WriteLine("works"); #else Console.WriteLine("not defined"); #endif I have tried project build, rebuild solution etc and the #if section is not recognized in IDE code completion does not evaluate statement build configuration also has debug Any ideas on what is going on?
-
I have edited project options Build-> "Conditional compilation symbols" /define:CLASSTEST In my main function i have>> namespace ConsoleApplication1 { class Program { static void Main(string[] args) { #if (CLASSTEST) Console.WriteLine("works"); #else Console.WriteLine("not defined"); #endif I have tried project build, rebuild solution etc and the #if section is not recognized in IDE code completion does not evaluate statement build configuration also has debug Any ideas on what is going on?
remove the /Define:
Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
Most of this sig is for Google, not ego.