Description
As of Microsoft.Extensions.DependencyModel 6.0.0, getting the DependencyContext of an application deployed as a single-file is not supported. The code is properly annotated with the RequiresAssemblyFiles
attribute. The goal of this request is to remove the RequiresAssemblyFiles
attribute and make DependencyContext.Default
work for apps published in the single file deployment model instead of returning null
.
I have dedicated a project to experiment with creating a DependencyContext
in single-file applications: https://github.com/0xced/SingleFileAppDependencyContext
I came to the conclusion that the CoreCLR should probably expose some information about the single-file bundle structure. This would enable Microsoft.Extensions.DependencyModel to access the bundled .deps.json
file in order to construct a valid DependencyContext
instance.
I'd be happy to attempt a pulI request but I have never played with the CoreCLR codebase. So I'll happily accept guidance on how to best expose the single-file bundle structure through QCall, assuming that it's the best way to do it.
Metadata
Metadata
Assignees
Type
Projects
Status