Figmo wrote:I get this randomly and constantly. several times a day. when it happens, deleting the presentation/plugins folder fixes it. v4.20
so anybody know WHY this happens?
it's really slowing down my development having to exit vs2019, delete folder contents, restart vs2019, rebuild all - over and over again once or twice an hour
I hate voodoo coding. prefer to understand the "why"
When this happens: nopCommerce differentiate all plugins by their system names. That’s why each plugin should have unique system name. If multiple plugins have same system name, system will throw this error.
How this happens: This issue can be occurred mainly for 2 reasons.
1. If you type same system name multiple times for multiple plugins.
2. Let you have 2 plugins,
PluginA and
PluginB.
PluginA has a project reference of
PluginB. When
you do not set reference project copy local equal false, then Visual Studio may copy all static and binary files of
PluginB into
PluginA publish folder (
Nop.Web > Plugins). In this way, plugin.json of
PluginA will be replaced by plugin.json of
PluginB and both will have the same system name.