-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Hi! Thank you for your solution.
What if the PluginApp have dependencies?
The project throw "FileNotFoundException: Could not load file or assembly 'ExternalLibrary'".
I also tried to load PluginApp with AssemblyDependencyResolver: in the Startup.ConfigurePlugin i wrote:
PluginLoadContext loadContext = new PluginLoadContext(assemblyPath);
var pluginAssembly = loadContext.LoadFromAssemblyName(new AssemblyName(Path.GetFileNameWithoutExtension(assemblyPath)));
using the PluginLoadContext class from here: https://docs.microsoft.com/en-us/dotnet/core/tutorials/creating-app-with-plugin-support#load-plugins
But in that last case the main dll go in error:
FileNotFoundException: Could not load file or assembly 'PluginApp'
Metadata
Metadata
Assignees
Labels
No labels