A plugin with 'plugin.name' system name is already defined

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 года назад
rajupaladiya wrote:
Did you checked this in plugin csproject file?
If you created any new plugin then make sure release and build mode output folder is same.

Sometimes it different it creating same issue which you facing now.

Can you explain what you mean by release and build output folder? In my .csproj file (as well as the included plugins .csproj file) I see an <OutputPath> tag and that is it.
4 года назад
In the Build dialog, there is a Configuration drop down in the upper left corner.
4 года назад
New York wrote:
In Visual Studio, check the Build tab on the plugin Project.
The 'Output path' should be  ..\..\Presentation\Nop.Web\Plugins\[your plugin folder]

I verified the output path is set correctly.

New York wrote:
Also, if you are seeing core nopCommerce .dll files in your output (\Presentation\...) plugin folder, then you need to check your Dependencies and be sure 'Copy local' is  false.

Where do I check the dependencies?
4 года назад
New York wrote:
In the Build dialog, there is a Configuration drop down in the upper left corner.

Thank you. My configuration is Active (Debug), which seems to match the included the plugins. Is this the correct configuration to use?
4 года назад
I finally (mostly) solved this.  I started with the suggested .csproj file in the documentation and found several issues and made the following changes.
From:
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>

To:
<CopyLocalLockFileAssemblies>false</CopyLocalLockFileAssemblies>

From:
<ItemGroup>
        <ProjectReference Include="..\..\Presentation\Nop.Web.Framework\Nop.Web.Framework.csproj" />
    </ItemGroup>

To:
<ItemGroup>
    <ProjectReference Include="..\..\Presentation\Nop.Web.Framework\Nop.Web.Framework.csproj" />
    <ProjectReference Include="..\..\Presentation\Nop.Web\Nop.Web.csproj" />
    <ClearPluginAssemblies Include="$(MSBuildProjectDirectory)\..\..\Build\ClearPluginAssemblies.proj" />
  </ItemGroup>

From:
<MSBuild Projects="@(ClearPluginAssemblies)" Properties="PluginPath=$(MSBuildProjectDirectory)\ $(OutDir)" Targets="NopClear" />

To:
<MSBuild Projects="@(ClearPluginAssemblies)" Properties="PluginPath=$(MSBuildProjectDirectory)\$(OutDir)" Targets="NopClear" />

The last change is subtle; I removed the space between "\" and "$".

These changes did solve everything. I was still left with the following folders in the output directory, which I manually deleted.

App_Data
Areas
Plugins
Properties
Themes

There is an active thread discussing this last issue:

https://www.nopcommerce.com/boards/topic/73910/plugin-output-directory-pulling-in-nopweb-directories#
4 года назад
In Visual studio, Go to Each plugin project explorer, and navigate to
Dependencies\Projects
  if you see the node "Nop.Web" under that plugin, then click it, and go to its properties:
  and set property "Copy Local" = "No"
Do this for all plugin projects.

See picture:

https://imgur.com/a/s4xNjJU
4 года назад
I downloaded the project and try to run and get this error. How is this possible when I haven't made any changes to the project?
4 года назад
I added this and now it works. Not sure why this isn't included in the release I just downloaded today..
https://github.com/nopSolutions/nopCommerce/commit/7b9f8f0fb6178c40b92167ebdaa049a21a47b1ee
3 года назад
arjunshetty2020 wrote:
Deleting contents of this folder worked!

\Presentation\Nop.Web\Plugins


worked for me
2 года назад
This answer fixed it for me in Visual Studio 2019: https://www.nopcommerce.com/en/boards/topic/72937/help-systemexception-a-plugin-with-sevenspikesnoppluginscategoriesheadermenu-system-name-is-already-/page/2#249810

Here is the link to the fix in that answer: https://github.com/nopSolutions/nopCommerce/commit/7b9f8f0fb6178c40b92167ebdaa049a21a47b1ee
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.