Upgrading from v2 to v2.1 - BEST PRACTICE

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 anni tempo fa
What is the "Recommended Way" to UPGRADE an EXISTING site that runs on V2 ...with the latest V2.1 ?
Off course, this assuming we MADE CHANGES on the V2 source code.
12 anni tempo fa
Well,
Here is the answer that will allow to keep your personal plugins working on the latest upgraded version

Assuming you have installed the LATEST version and that your kept your personal Plugins xx.cs files inside a folder name "SDSHARP" ...do the following:

=====================================================================================

Nop.Core.Domain
  + ADD "SDSHARP" folder containing the Models
  + ADD to VS Solution


Nop.Data.Mapping
  + ADD "SDSHARP" folder containing the Mapping to the actual DB tables
  + ADD to VS Solution


Nop.Services
  + ADD "SDSHARP" folder containing the Service to be called and its Interface
  + ADD to VS Solution


PlugIns
  + ADD SDSharp.Plugin.NameOfYourPlugin
  + ADD to VS Solution


Nop.Web.Framework.DependencyRegistrar.cs
  = ADD using SDSharp.Services;
  = ADD a line 117 as follow:
   builder.RegisterType<SDSharpService>().As<ISDSharpService>().InstancePerHttpRequest();

=====================================================================================

And that's it !!!
Filippo
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.