如何更新SharePoint功能?
我已创建并安装了自定义文档库,作为 SharePoint (WSS3) 安装的一项功能。安装和激活都很顺利,并且该功能可以运行。
但是,现在我需要更改功能 schema.xml 文件,但找不到将更改更新到 SharePoint 的方法。我猜这是通过 stsadm.exe 工具完成的,但找不到有关如何实际执行更新的文档。是否有一个简单的命令可以使用 FeatureId 或名称更新功能?或者我需要在将其读入网站之前停用并卸载它吗?
谢谢。
I've created and installed a custom Document Library as a feature to SharePoint (WSS3) installation. The installation and activation went fine and the feature is operational.
However, now I need to change the feature schema.xml file but I can't find a way to update the changes to SharePoint. I guess it's done via the stsadm.exe tool but can't find documentation on how to actually perform the update. Is there a simple to command to update the feature with FeatureId or name? Or do I need to deactivate and uninstall it before readding it to the site?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要停用该功能,安装更新版本,然后再次激活。
You need to deactivate the feature, install an updated version, and then activate it again.
以下内容与 2010/2013 年相关。
增加功能清单中的功能版本(在 Visual Studio 中找到),然后使用 PowerShell 并运行以下命令。
Following is relevant to 2010/2013.
Increment the feature version in your feature manifest (found in visual studio) then use PowerShell and run the following.