Are the any upgrade documentation from 4.1 til 4.2? For instance i have a interface called IPluginFinder which seems to be removed?ZeroG wrote:
I've the same question: I've to upgrade from 4.1 to 4.2 . Any suggestions?
The only documentation regarding upgrading nopcommerce (that I know of) can be found here:http://docs.nopcommerce.com/display/en/Upgrading+nopCommerce
To see an overall summary of whats new in nopcommerce 4.2 you can see the readme here:https://www.nopcommerce.com/releasenotes.aspx
And regarding your question for the IPluginFinder
In nopcommerce 4.2, the IPluginFinder
interface has now been removed and replaced with a IPluginService
. You can see the usage in the InstallController HttpPost Index() method.
In nopcommerce 4.1:
var pluginFinder = EngineContext.Current.Resolve<IPluginFinder>();
var plugins = pluginFinder.GetPlugins<IPlugin>(LoadPluginsMode.All)
.OrderBy(x => x.PluginDescriptor.Group)
.ThenBy(x => x.PluginDescriptor.DisplayOrder)
Has been replaced with the following in nopcommerce 4.2:
var pluginService = EngineContext.Current.Resolve<IPluginService>();
var plugins = pluginService.GetPluginDescriptors<IPlugin>(LoadPluginsMode.All)
.Where(pluginDescriptor => !pluginsIgnoredDuringInstallation.Contains(pluginDescriptor.SystemName))
.OrderBy(pluginDescriptor => pluginDescriptor.Group).ThenBy(pluginDescriptor => pluginDescriptor.DisplayOrder)
If you have any other particular questions/issues regarding upgrading to 4.2 you might have more luck getting responses if you raise a new topic in the nopcommerce upgrade forum here:
Hope this helps.