在 IHostBuilder 中找不到ConfigureCmsDefault() - Optimizely (EPiServer) CMS 12
我的项目中有 Optimizely(以前称为 Episerver)CMS 版本 12.3.1
,我将其更新到 12.4.0
。现在,当我尝试添加 .ConfigureCmsDefault()
调用时,我在 Program.cs 中收到以下错误。
错误 CS1061“IHostBuilder”不包含“ConfigureCmsDefault”的定义,并且找不到接受“IHostBuilder”类型的第一个参数的可访问扩展方法“ConfigureCmsDefault”(您是否缺少 using 指令或程序集引用?)
)安装了以下软件包版本:
有人知道为什么会发生这种情况吗?
也找不到EPiServer.CMS的12.4.0,它仍然是12.3.1。
I had Optimizely (formerly Episerver) CMS version 12.3.1
in a project and I updated it to 12.4.0
. Now I'm getting the following error in Program.cs when trying to add the .ConfigureCmsDefault()
call.
Error CS1061 'IHostBuilder' does not contain a definition for 'ConfigureCmsDefault' and no accessible extension method 'ConfigureCmsDefault' accepting a first argument of type 'IHostBuilder' could be found (are you missing a using directive or an assembly reference?)
I have the following package versions installed:
Does Anyone have an idea why this is happening?
Also can't find 12.4.0 for EPiServer.CMS, it is still 12.3.1.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
扩展方法称为
ConfigureCmsDefaults
(您缺少s
)。您可以将
EPiServer.Framework
和EPiServer.CMS.Core
软件包更新到最新版本 (12.4.0
)。EPiServer.CMS
软件包尚不依赖于最新的软件包版本。The extension method is called
ConfigureCmsDefaults
(you're missing ans
).You could update the
EPiServer.Framework
andEPiServer.CMS.Core
packages to the latest version (12.4.0
). TheEPiServer.CMS
package does not have dependencies to the most recent package versions yet.