Sharepoint 列表是否与创建它们的功能相关?
我们正在做一些事情来安抚让我不舒服的安装团队。我们有一组永远不会改变的 SharePoint 列表,但每次我们发布新版本的代码时,管理层都会迫使我们创建一个新功能,该功能以创建相同 SharePoint 列表的当前版本号命名。例如,我们有一个名为 Connections 的列表。名为 OurProductListsVersion1.1 的功能创建此列表。当我们的产品版本 1.2 发布时,将创建一个名为 OurProductListsVersion1.2 的功能,并且该功能将创建一个名为 Connections 的列表。
我们的功能当前的工作方式是,如果 OurProductListsVersion1.1 创建产品,然后部署 OurProductListsVersion1.2,则无法撤回 OurProductListsVersion1.1,因为它创建了产品,并且产品与该功能绑定。如果 OurProductListsVersion1.1 被撤回,我们会收到此错误:
此场中未安装列表模板“xxx”的功能“xx”。
这个错误让我相信创建产品的任何功能的FeatureID都与产品相关联,并且产品需要该功能才能工作。当我们安装尝试创建产品的新功能时,是否有任何方法可以更新产品中的FeatureID?
We're doing something to appease our installation team that is giving me fits. We have a set of SharePoint lists that never change, but every time we release a new version of our code, management is forcing us to create a NEW feature that is named after the current release number that creates the SAME SharePoint lists. So for instance, we have a list named Connections. A feature called OurProductListsVersion1.1 creates this list. When version 1.2 of our product comes out, a feature called OurProductListsVersion1.2 will be created and that feature will create a list named Connections.
The way our features currently work is that if OurProductListsVersion1.1 creates Products, and then OurProductListsVersion1.2 is deployed, OurProductListsVersion1.1 cannot be retracted because it created Products, and Products is tied to that feature. If OurProductListsVersion1.1 is retracted, we get this error:
feature 'xx' for list template 'xxx' is not installed in this farm.
This error leads me to believe that the FeatureID of whatever feature creates Products is tied to Products, and Products needs that feature to be available to work. Is there any way to update the FeatureID in Products as we install a new feature that tries to create Products?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
作为功能的一部分部署的元素清单(列表定义、列表实例等)在其关联的功能停用时将被撤回。
您是否研究过 SharePoint 2010 的新功能版本控制功能?
基本上,您现在可以为功能指定版本号(例如 1.1.0.0),并定义从以前的版本号升级到新版本时的升级操作。
Element Manifests (list definitions, list instances, etc.) that are deployed as part of a feature are retracted when the feature they are tied to is deactivated.
Have you looked into SharePoint 2010's new Feature Versioning feature?
Basically, you can now give your feature's a version number (1.1.0.0, for example) and define upgrade actions when going from a previous version number to a newer version.