I have a .NET Core class library which is being used as a plugin in an executable program. The plugin uses a licensed component from a third-party SDK, and I'm using a licenses.licx
file to embed the licensing information in the output dll. I'm using Visual Studio 2019 to compile both the plugin and the executable.
When the executable program loads the plugin and tries to use it, a licensing exception is thrown from the third-party SDK. It seems as if the licensing information from the licenses.licx
file in the plugin project isn't being used by the executable.
I tried referencing the plugin project directly from the executable project instead of loading the plugin dynamically, but the same issue occurs.
The only way I could get it to work was to add a licenses.licx
file to the executable project with a reference to the third-part SDK. Doing this would prevent the licensing exception from being thrown and everything worked as expected. However this is not a good solution because now every licensed component that is used by a plugin has to be directly referenced by the executable project.
Is there any way I can use a licensed component in the plugin project without adding the licenses.licx
file to the executable project?