Nopcommerce从de nop核心控制器继承代码 [英] Nopcommerce inherit code from de nop core controller

查看:131
本文介绍了Nopcommerce从de nop核心控制器继承代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在nopcommerce中开发一个插件.为此,我想替换nopcommerce中的一些核心代码.

I'm trying to develop a plugin in nopcommerce. To do this I want to replace some of the core code out of nopcommerce.

我试图通过以下方式继承它:

I tried to inherit it via:

public class TryingNewProjectController : BasePluginController, Nop.Web.Controllers.CatalogController
{
   ///// CODE /////  
}

有人可以告诉我我在做什么错吗?

Can someone tell me what I'm doing wrong ?

错误:

名称空间"Nop.Web"中不存在类型或名称空间名称"Controllers"(您是否缺少程序集引用?

The type or namespace name 'Controllers' does not exist in the namespace 'Nop.Web' (are you missing an assembly reference?

推荐答案

这确实意味着您实际上缺少能够使用Nop.Web.Controllers的引用.

It really does mean you are actually missing a reference to be able to use Nop.Web.Controllers.

您发现它是Web.Controllers.CatalogController.

And as you found out it was Web.Controllers.CatalogController.

因此Nop.Web.Controllers本身就期望引用.

So Nop.Web.Controllers was itself expecting the reference.

这篇关于Nopcommerce从de nop核心控制器继承代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆