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.

 

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

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

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

posted on 2012-02-08 15:55  SUNJUNLIN  阅读(1038)  评论(1编辑  收藏  举报

导航