首页 > 解决方案 > 在 .NET Core 应用程序中添加 OrchardCMS 时出现参考错误

问题描述

图 1

图 2

我正在尝试添加IServiceCollection.AddOrchardCms();,但出现以下错误:

Error   CS1061  'IServiceCollection' does not contain a definition for 'AddOrchardCms' and no accessible extension method 'AddOrchardCms' accepting a first argument of type 'IServiceCollection' could be found (are you missing a using directive or an assembly reference?)  WebApplication1 D:\vibhan_pro\CMS\WebApplication1\WebApplication1\Startup.cs    15  Active

标签: c#.net

解决方案


推荐阅读