How do nopCommerce plugins reference asp core web

3 months ago

I have some questions about developing plugin for version 4.3
So, all plugins in the solution web nopCommerce project reference directly Nop.Web.Framework and indirectly Nop.Core/Data/Service

All the plugins projects is described as <Project Sdk="Microsoft.NET.Sdk">.
And here is my question: how they are able to reference parts of Microsoft.NET.Sdk.Web - like Controllers and Components?

I have a plugin in different solution and the only way I found to reference controllers is by defining the project as Microsoft.NET.Sdk.Web

Kings Regards
3 months ago
Not sure if this is what you mean - You can also reference Nop.Web
3 months ago
The solution was to add in my project file the code below.

    <FrameworkReference Include="Microsoft.AspNetCore.App" />