Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / March 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DULLAX - 16 Mar 2006 13:00 GMT
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/

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.