I have a netstandard 2.0 project that I am trying to add into it a reference to nuget ChilkatDnStandard
. The ChilkatDnStandard
library depends on ChilkatNativeLib
which contains all the native libraries for various platforms.
This library mentioned above is then referenced in the same solution (project reference) by two projects: One is dotnet core 7, one is dotnet framework 4.8. When compiling these projects, the netstandrard project is copied, the ChilkatDnStandard
library is copied but the runtimes folder that comes out of the ChilkatNativeLib
is not copied over resulting in errors when trying to run these two projects.
If I add a reference to ChilkatNativeLib
in the netstandard library then the runtimes are copied to the core 7 project but not to the net 4.8 project.
My netstandard project already contains <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
(without it I saw that assemblies referenced by the netstandard library would not be copied to the core/framework projects)
Was I supposed to add to the netstandard project the ChilkatNativeLib
library to begin with? why is the runtimes folder that ChilkatNativeLib
creates is not being copied to the core/framework projects? I think I could add the ChilkatNativeLib
reference to the core/framework projects so the runtimes get there but I am not sure that is the way it is supposed to work.