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

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

While creating a SharePoint project in Visual Studio, the New Project wizard prompts for the local site to be used for debugging  the project. If you need to use a different site after the project has been created, you can update the setting as follows:

 

In Visual Studio Solution Explorer, Select the Project that you need to update. View the properties for this project (click F4) – In the properties window, update the SiteURL property value.

 

You won't be able to locate the file to be updated by searching the Visual Studio solution.  The setting is physically stored in the <SharePointSiteUrl> element within the .csproj user configuration file for the project . If you update the file directly, you will need to reload the project in Visual Studio for the updated setting to take effect.

Happy Coding!


 

Ebook Download
View all
Learn
View all