Razor Views for Plugins giving Error

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 years ago
I am using NopCommerce 3.90. I am attempting to create a new plugin. However, I am not getting any IntelliSense for the Views and it is giving errors. One of the main errors says, "Error  CS0234  The type or namespace name 'Web' does not exist in the namespace 'Nop' (are you missing an assembly reference?)".

Basically, I am seeing where the razor view engine is not working with the class library. Not sure how to get around this.
3 years ago
Are you editing the views in the correct directory i.e
source39\Plugins\Nop.Plugin.Group.Name\Views
or in
source39\Presentation\Nop.Web\Plugins\Group.Name\Views

Do you have a _ViewImports.cshtml file
3 years ago
Hello Yidna,

Thank you for responding.

I am editing inside the "source39\Plugins\Nop.Plugin.Group.Name\Views", and no, I do not have a "_ViewImports.cshtml file".

I am going to try your suggestions and see if it works.
3 years ago
It worked! Thank you.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.