csproj isn't the place for this; an app.config or a settings file - fine. But not the csproj. End users should never see this. The standard web-reference tools (wsdl.exe
, svcutil.exe
, wse*wsdl.exe
) all support configuration-based locations, for example (from wsdl.exe
):
/appsettingurlkey:
The configuration key to use in the code generation to read the default
value for the Url property. The default is to not read from the config
file. Short form is '/urlkey:'.
If you mean other developers... it can get messy - especially if the devs have separate client/server setups. One trick I've used successfully is to standardise on the IIS mapping, and for all the developers add a "hosts" entry (perhaps "localserver") to their own server (commonly a VM).