vs2010修改sharepoint部署站点

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.

Here is the file:

Once this file is open, you can change the url, save the file, and close it out.

Old setting:

New setting:

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.

 

上面的方法我试了不行,后来我找到另个的方法:

vs2010修改sharepoint部署站点_第1张图片

 在工具栏打开视图,再打开properties window属性窗口

vs2010修改sharepoint部署站点_第2张图片

选中你的开发项目,就可以看到如下的Site URL

vs2010修改sharepoint部署站点_第3张图片

你可能感兴趣的:(SharePoint)