Dependent plugins in version 4.20

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
Hi,

our plugins depend on one core plugin that should be installed very first.
Unfortunately, in version 4.20 all plugins are not loaded in memory anymore - in that way when I try to install the plugin it raise an exception because a dll is not loaded (it is loaded by our core plugin).

Is there a way to say that one plugin depends on another not nopCommerce to install the first one firstly and then the one that is clicked?
Otherwise nopCommerce dies.

Thanks in advance
4 years ago
Hello,

You can use the depends on functionality of the plugins in 4.20. You can say on which plugins the plugin depends by specifying them in the DependsOnSystemNames property in the plugin.json of your plugin.
e.g. :
"DependsOnSystemNames": [ "SevenSpikes.Core" ]

The property accepts an array so you can pass an array of plugins (["", "", ""] and so on) for your plugin to be dependant on.

For more information, you can check this commit in GitHub.

Hope this helps!

Regards,
Anton
4 years ago
@Anton,

you are a machine ( :

Thanks,
Boris
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.