我有一个复杂的SharePoint部署,其中包含多个EventReceivers和Workflows。
我还有对现有列表的架构更改,添加元数据新列和更改现有列。
我应该将单个功能、事件接收器或工作流打包成一个解决方案,还是将多个功能放到单个解决方案中,因为它们都可以一起工作?
我询问的一个主要原因是为了将来的代码升级。如果特性是分开的,那么对代码的一个部分进行升级不需要重新部署解决方案中的所有特性。这是我应该担心的问题还是"stsadmin -o upgradesolution"可以处理具有多个特性的解决方案升级中的任何问题?
请告诉我有没有任何SharePoint专家能理解这个。
Thank you,
Keith
Update: Looking at the website drax referenced, I found this reference site: http://msdn.microsoft.com/en-us/library/aa543659.aspx
这句话似乎对解决方案中的升级功能产生了很大的障碍:
Solution upgrade can only be used to replace files. You can add new files in a solution upgrade and remove old versions of the files, but you cannot install Features or use Feature event handlers to run code for Feature installation and activation. The following operations are not supported in solution upgrade.
Removing old Features in a new version of a solution.
Adding new Features in a solution upgrade.
Updating or changing the receiver assembly for existing Features in a new version of a solution.
Adding or changing Feature elements (Element.xml files) in a new version of a solution.
Adding or changing Feature properties in a new version of a solution.
Changing the ID or scope of old Features in a new version of a solution.
Removing Feature elements (Element.xml files) in a new version of a solution.
Removing Feature properties in a new version of a solution.
那么......升级解决方案可以做什么?