How do I create a #define in the build property - VS2005 Web Service Project?

D

DULLAX

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
 
J

Josh Twist

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/
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top