简体   繁体   English

SharePoint 2010:解决方案/功能升级的推荐做法

[英]SharePoint 2010: solution/feature upgrade recommended practices

this is kind of an open question: I'm trying to define for a team a set of recommended practices for delivering a SharePoint solution in stages. 这是一个悬而未决的问题:我正在尝试为团队定义一套建议的实践,以分阶段交付SharePoint解决方案。 That means, changes will happen at every level (solution, feature, web part, content types, etc). 这意味着将在每个级别(解决方案,功能,Web部件,内容类型等)进行更改。

On your experience, which are the practices that really, really, worked for you guys? 根据您的经验,哪些方法确实对你们有用? For ex. 对于前。 using upgrade custom actions, placing upgrade logic entirely on FeatureUprading event handlers? 使用升级自定义操作,将升级逻辑完全放在FeatureUprading事件处理程序上? Or in FeatureActiving handlers and assume features could already exist? 还是在FeatureActiving处理程序中并假定功能可能已经存在? Else? 其他?

I'm asking because I know of projects that follow The Word on this from many MSDN articles and still, upgrades are kind of nightmarish to manage, and those processes are sometimes difficult to grasp for average devs. 我之所以这么问,是因为我从许多MSDN文章中都知道遵循Word的项目,而且升级仍然是噩梦般的管理,而且对于普通开发人员而言有时很难掌握这些过程。

Thanks! 谢谢!

As no one else has ventured an answer, my current approach is: 由于没有其他人敢于回答一个问题,所以我目前的方法是:

  1. Use the declarative approach for those cases where it works 100% of the time eg NOT content types 对于那些100%可能有效的情况,请使用声明性方法,例如NOT内容类型

  2. Fall back to code for the rest 其余代码回落

  3. Always write the related code so that it can be run multiple times against either the pre- or post-upgrade state 始终编​​写相关代码,以便可以在升级前或升级后状态多次运行

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM