Plugin development and usage of nuget packages

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
Hello I have an issue, i develop a plugin and i need to use nuget package library in my plugin. I install package but I get an error which says: Could not load file or assembly "packagename", The system cannot find the file specified.
Maybe you guys know how to solve it?
4 years ago
As an example, see the \Plugins\Nop.Plugin.Payments.Square\Notes.txt

...
  <!--Set this parameter to true to get the dlls copied from the NuGet cache to the output of your project.
    You need to set this parameter to true if your plugin has a nuget package
    to ensure that the dlls copied from the NuGet cache to the output of your project-->
    <CopyLocalLockFileAssemblies>false</CopyLocalLockFileAssemblies>
...
3 years ago
New York wrote:
As an example, see the \Plugins\Nop.Plugin.Payments.Square\Notes.txt

...
  <!--Set this parameter to true to get the dlls copied from the NuGet cache to the output of your project.
    You need to set this parameter to true if your plugin has a nuget package
    to ensure that the dlls copied from the NuGet cache to the output of your project-->
    <CopyLocalLockFileAssemblies>false</CopyLocalLockFileAssemblies>
...


Hello. Very old post i know, but when i set CopyLocalLockFileAssemblies to true i get the whole web presentation copied into the plugin source folder, it seems.

https://i.imgur.com/mN93tPx.png

Looks very  dumb, but does it matter?
3 years ago
No, that does not look good.  See if this helps
https://github.com/nopSolutions/nopCommerce/issues/3208
3 years ago
New York wrote:
No, that does not look good.  See if this helps
https://github.com/nopSolutions/nopCommerce/issues/3208


Maybe there were some changes after the version im on for this project. This solution is on 4.1 atm
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.