Condividi tramite


How to: Add or remove SharePoint connections

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Server Explorer lets you browse SharePoint sites as well as data connections. However, before you can browse the contents of a SharePoint site you must add it to the SharePoint Connections node.

To add a SharePoint site to the SharePoint connections node

  1. On the menu bar, choose View, Server Explorer.

  2. In Server Explorer, choose the SharePoint Connections node, and then, on the menu bar, choose Tools > Add SharePoint Connection.

  3. In the Add SharePoint Connection box, enter the URL for the SharePoint site (for example, http://testserver/sites/unittests).

To delete a SharePoint site from the SharePoint connections node

  1. On the menu bar, choose View, Server Explorer to open Server Explorer.

  2. Expand the SharePoint Connections node to reveal the SharePoint site that you want to delete from Server Explorer.

  3. Choose the site, and then, on the menu bar, choose Edit > Delete.

    Note

    This step doesn't delete the underlying site; it deletes only the connection from Server Explorer.

See also