Skip to content

"Plugin" style apps often need to recursively implement assembly load policies #9590

@agocke

Description

@agocke

The problem is as follows: you write some shared framework .NET Core app and deploy it with dotnet.exe. You want to provide a plugin model where people can provide custom assemblies for you to load. Those assemblies will have their own dependencies. However, there's no mechanism to have a secondary, recursive *.deps.json for the plugin's dependencies. This means that every plugin is responsible for hooking assembly resolve and doing their own resolution, which gets overwhelmingly complicated very quickly.

CoreCLR should probably provide some functionality, perhaps in AssemblyLoadContext, to support recursive nesting of shared framework loading.

Metadata

Metadata

Labels

area-AssemblyLoader-coreclrquestionAnswer questions and provide assistance, not an issue with source code or documentation.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions