c# - 在 .NET Core 应用程序中添加 OrchardCMS 时出现参考错误
问题描述
我正在尝试添加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
解决方案
推荐阅读
- tensorflow - TensorFlow中的三角矩阵矩阵乘以`trmm`
- java - 为什么我们在 java-9 模块系统中需要静态?
- corda - Corda - 自 Corda 4 升级以来测试接受器流失败
- javascript - 车把和 js:在 for 循环内分配不同的 id 值并在循环外引用它们
- sql - 返回跨不同组的时间增量的中值
- elasticsearch - 结合查询与日期直方图
- powerbi - 在 PowerBI 中添加具有硬编码值的列
- python-3.x - 在python中将avro对象序列化为字符串
- scala - 有条件地转换火花中的列
- .net-core - 如何在 .NET Core 控制台应用程序中为 HttpClient 启用日志记录?