Open nitz opened 3 years ago
Thank for reporting this! Based on the description it might be a bug and it should automatically include the plugin directory. I'll check and get back to you.
Awesome, no rush as the workaround I found seems to work fine! The more I was thinking about it too, it's very likely "technically correct" as is: The plugin directory wouldn't be on PATH, and the application's working directory isn't switched in there. It definitely does seem like it might be expected behavior by most users... but you know, they wouldn't call it DLL hell if loading them always made sense either 🙂
News?
Hello!
Real quick I wanted to say that I'm so glad I found this project, it's the exact amount of auto-magic I was hoping for In a plugin system!
So, I'm making use of a
FolderPluginCatalog
for now, just as I'm setting up the scaffolding for a project. One of the plugin assembles references a nuget package. I'm using the "xcopy deploy" method to copy my plugin assemblies (and their dependencies via<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
) to my plugins folder.This is a slimmed down version of my
PluginCoordinator
:The line commented in the creation of the
PluginLoadContextOptions
is where I've found my problem. With the code as shown (not setting the additional runtime paths to include the exact same folder causes aFileNotFound
exception when say the assembly containing theIFoo
s tries to load (thus needing it's NuGet dependency -- which is in the folder with it). However, adding theAdditionalRuntimePaths
back in like it's written there: Everything loads peachy just like you'd imagine it should.I can't tell if this is an issue from me using it wrong (and I'm expected to specify the folder not only in the
FolderPluginCatalog
constructor, but also through the context options,) or if it's something that the framework should handle and just doesn't.Thanks again for the awesome project!