Changing the SharePoint Site in a Visual Studio 2010 / SharePoint 2010 project
I created a new Visual Studio project and entered in the url of a site that simply didn’t exist. Whoops! I didn’t want to create a new site for just this project, so I wanted to change the URL that Visual Studio 2010 uses to deploy this SharePoint solution.
It’s not located in the project file itself. It’s located in the user config file of the project.
Once this file is open, you can change the url, save the file, and close it out.
After editing this file, you’ll have to reload your project.
It’s not completely obvious where this setting is, but once you’ve done it, you’ll remember that the key is the user configuration file.