Skip to content

Plugin dependencies #2

@stefanodelpero

Description

@stefanodelpero

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions