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:
vs2010修改sharepoint部署站点

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

Old setting:
vs2010修改sharepoint部署站点

New setting:
vs2010修改sharepoint部署站点

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部署站点

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

vs2010修改sharepoint部署站点

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

vs2010修改sharepoint部署站点

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2021-10-09
  • 2022-12-23
  • 2021-12-29
  • 2021-10-08
  • 2021-12-04
猜你喜欢
  • 2022-12-23
  • 2021-10-29
  • 2022-01-02
  • 2021-07-31
  • 2021-07-10
相关资源
相似解决方案