How to change SharePoint 2010 local site used for debugging in Visual Studio

sharepointsharepoint-2010visual studio 2010

I have a Visual Studio 2010 SharePoint 2010 project that was created with a local site that is no longer a SharePoint site because the port number was required for another application. However, another local site is available for SharePoint development.

Where is the local site setting stored, so that I can change the port? I can't find it in the .csproj file or any of the other project (and solution) files.

Best Answer

Highlight the project you are working on within the Solution Explorer and update the SiteURL property to reflect the local site you would like to use.