PowerShell
和SharePoint
的新用户,我在sharepoint 2013
上有一个包含SharePoint列表定义和实例的visual studio 2013
项目。
添加并安装解决方案并启用该功能后,我在列表中添加了太多记录。
现在我在列表中添加了另一列(业务需求),我想更新功能(PowerShell
)而不会丢失之前插入的记录...
ps:每次部署(添加新列之后),都会显示来自VS的消息:The url or name of this list instance conflicts with a list instance already on the server, the list instance on the server will be deleted before deploying the new instance
...然后我点击Resolve automatically
- 然后列表内容消失...
我该怎么办呢?
答案 0 :(得分:0)
在挖掘出更多澄清之后...我发现它并不复杂...... 执行此类更新
1 /在生产环境中:
只需要运行Update-SPSolution
cmd-let,这将为您完成工作......
或者我们也可以做以下事情
1 - 停用功能......
2 - 撤回解决方案......
3 - 删除解决方案......
4 - 添加解决方案......
5 - 部署解决方案......
6-激活功能......
2 /在开发环境中:
您可以将解决方案资源管理器中列表实例的Deployment Conflict Resolution
属性设置为None
。只需右键单击VS中的列表实例项目项,然后选择“属性”。然后从下拉列表中选择无
以下是更多信息的链接:http://michaelbrockman.wordpress.com/2010/11/10/deployment-conflict-resolution-in-visual-studio/