【问题标题】:Can't upgrade solution after renaming feature重命名功能后无法升级解决方案
【发布时间】:2015-12-06 21:01:30
【问题描述】:

我目前正在使用 SPSD 为 Sharepoint 2013 项目开发部署解决方案。

与大多数项目一样,我们为项目的不同阶段保留了不同的版本。在我们的早期版本中,我们将功能命名为“定义和 WebParts”,但后来我们决定取消 WebParts,因此我们将功能重命名为“定义”。

现在,我的问题是,如果我只是升级解决方案,我会收到错误"The solution cannot be deployed. The feature '' uses the directory '' in the solution. However, it is currently installed in the farm to the directory ''. Uninstall the existing feature before you install a new version of the solution."

所以我在升级功能之前禁用并卸载它。虽然我不再收到以前的错误,但我现在得到一个新的:"The solution file located at "" does not appear to be a valid upgrade for solution "".The two solutions must have the same resource types (global or Web-application scoped)."

有人知道这个错误是什么意思或者我应该如何升级吗?

【问题讨论】:

    标签: sharepoint deployment


    【解决方案1】:

    您好,我看到了这个博客,可能解释与您的情况相关 http://snahta.blogspot.com.au/2009/09/solution-file-located-at-xxxxwsp-does.html

    原因: 这可能是由于更改了功能范围或在解决方案包中添加了旧版本的新功能。

    SharePoint 抱怨说该解决方案上次在全球范围内部署,而这次您尝试将其部署到特定的 Url 或以其他方式部署。

    解决方案: 我会建议更好地收回/删除旧解决方案并添加/部署新解决方案。

    但以防万一您对这种方法有疑问,我建议您比较解决方案包中的功能并将其移至另一个解决方案包。

    【讨论】:

    • 我们只将旧版本部署到我们公司的服务器上,所以我们最终只是通过 power shell 删除了所有内容。从现在开始再次重命名功能之前,我会更加小心:)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-24
    • 2014-04-17
    • 2019-01-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多