Folks,
This is probably easy if you have come across it -
I am trying to #define a variable in the build property - for a Web
Service Project
I see the project settings are totally different for a Web Service v/s
a regular C# project
in VS2005 -
How do I create a #define in the build property ?
Current workaround is to put it as the first line in the Web Service -
but this results in code change every time I need to define/undefine
Any help is appreciated.
Thanks in Advance
Dullax
Josh Twist - 17 Mar 2006 08:37 GMT
Because Websites (and services) aren't built* in VS2005 there's no way
of setting compilation constants.
However, The ASP.NET team at MS have created the Web Applciation
Project extenstion for VS2005 that makes web projects work just like
projects in VS2003 - so you could use that:
http://webproject.scottgu.com/
* The compiler just checks for errors.
Josh
http://www.thejoyofcode.com/