How to: Rename a Project Web Reference
The document is archived and information here might be outdated

How to: Rename a Project Web Reference

The name assigned to a Web reference is also its programmatic namespace. The namespace can be changed to suit your needs. You can change the name of the Web reference to any string expression that is meaningful to its function. For example, you could change the name of a Web reference that handles account totals to AccountTotal.

To rename a Web reference in a project

  1. In Solution Explorer, expand your project's App_WebReferences folder, and then select the node for the reference you want to rename.

  2. Right-click the reference and click Rename, and enter a new name.

    NoteNote

    If you have used the old name elsewhere in your project code, remember to change each occurrence to the new name.

See Also

Show:
© 2016 Microsoft