Plugin not copying file to Plugins/Bin

1 year ago
Hi, I am using the nuget package Select.HtmlToPdf.NetCore and I added the below code to my project solution and it copies the "Select.HtmlToPdf.dll" and "Select.Html.dep" to the "\Plugins\Distributor.Products" directory. However, it does not copy them to "Plugins\bin". It only copies "Select.HtmlToPdf.dll"

  <ItemGroup>
    <PackageReference Include="HtmlAgilityPack.NetCore" Version="1.5.0.1" />
    <PackageReference Include="Select.HtmlToPdf.NetCore" Version="18.4.0" />
  </ItemGroup>

  <Target Name="FilterCopyLocalItems" AfterTargets="ResolveLockFileCopyLocalProjectDeps">
    <ItemGroup>
      <ReferenceCopyLocalPaths Remove="@(ReferenceCopyLocalPaths)" Condition="'%(Filename)' != 'Select.HtmlToPdf'" />
      <ReferenceCopyLocalPaths Remove="@(ReferenceCopyLocalPaths)" Condition="'%(Filename)' != 'Select.Html.dep'" />
    </ItemGroup>
  </Target>


Thoughts?
1 year ago
bump
10 months ago
According to this publication, you just have to add the following line in your .csproj
https://github.com/nopSolutions/nopCommerce/issues/3208
   <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
10 months ago
espiro16 wrote:
According to this publication, you just have to add the following line in your .csproj
https://github.com/nopSolutions/nopCommerce/issues/3208
   <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>


I can try. But I think I have it. It’s when it goes to the Bin folder. Not my plugin build folder.