How to update SharePoint feature?

跟風遠走 提交于 2019-12-25 00:35:37

问题


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.


回答1:


You need to deactivate the feature, install an updated version, and then activate it again.




回答2:


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.

Update-SPSolution -Identity "My Awesome WebParts v1.wsp" -LiteralPath "C://My Awesome WebParts v2.wsp"


来源:https://stackoverflow.com/questions/4304164/how-to-update-sharepoint-feature

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!