How to: Rename a Project Web Reference
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

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.


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

See Also

© 2016 Microsoft