【问题标题】:Sharepoint 2010 : How to apply feature upgrades to new site collections that are created after upgrading existing feature in existing site collectionsSharepoint 2010:如何将功能升级应用于在升级现有网站集中的现有功能后创建的新网站集
【发布时间】:2011-09-11 16:25:31
【问题描述】:

我成功升级了现有 sharepoint 2010 网站集 (A) 中的一项功能。以前的版本是 0.0.0.0,我升级到了 1.0.0.0。升级后,我又创建了一个网站集 (B) 并激活了相同的功能。令我惊讶的是,网站集 (B) 不包含我应用于网站集 (A) 的任何更改。我运行了以下 powershell 脚本来检查两个网站集上的功能版本,结果都是 1.0.0.0。

(get-spsite http://mysiteurl/sites/scb).QueryFeatures((New-Object System.Guid("--feature guid--")), $true) | Select Definition, Version

现在我无法升级网站集(B) 中的功能,因为升级系统将无法工作,因为版本是 1.0.0.0。有没有办法升级功能升级后创建的新网站集中的功能?

【问题讨论】:

    标签: sharepoint-2010 sitecollection feature-upgrade


    【解决方案1】:

    版本 0.0.0.0 和 1.0.0.0 之间有什么变化?如果没有更多信息,听起来您希望在新网站集上激活该功能时运行 FeatureUpgrading 中的代码。它不会。为了在激活该功能时执行相同的代码,您还将代码放在FeatureActivated 方法中。

    【讨论】:

      猜你喜欢
      • 2010-12-26
      • 2011-03-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-09-25
      • 1970-01-01
      • 2010-11-23
      • 1970-01-01
      相关资源
      最近更新 更多