I am building a plugin that depends on the functionality of another plugin in my project. When I import the plugin as a dependency into my references of my plugin, I receive the following error message:
A plugin with 'Payments.CreditCardPayment' system name is already defined
I have turned off building in my solution for that project, however, the views no longer work as they're dependent on the view files being copied over.
<ItemGroup> <!-- This setting fixes the problem caused by this update in the websdk in vs2019 https://github.com/aspnet/websdk/commit/7e6b193ddcf1eec5c0a88a9748c626775555273e#diff-edf5a48ed0d4aa5a4289cb857bf46a04 Therefore, we restore the standard configuration behavior (there was no copy to the output directory) in order to avoid the "Duplicate dll" error during publication. We can also use “ExcludeConfigFilesFromBuildOutput” according to https://github.com/aspnet/AspNetCore/issues/14017 --> <Content Update="**\*.config;**\*.json" CopyToOutputDirectory="Never" CopyToPublishDirectory="PreserveNewest" /> </ItemGroup>
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.