开发者

How to update SharePoint feature?

开发者 https://www.devze.com 2023-01-27 15:57 出处:网络
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.

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.


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


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"
0

精彩评论

暂无评论...
验证码 换一张
取 消