-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot resolve runtime and native assets from dependency context of a class library #6718
Comments
I think I might be bumping into the same issue here: Have you had any luck creating an AssemblyLoadContext? I hit a bug in that when trying to find a workaround for the above issue. |
@jcansdale I've had success in creating a fully working AssemblyLoadContext from |
I'd be interested to see your |
@jcansdale Checkout https://github.com/dotnet/cli/tree/rel/1.0.0/src/Microsoft.DotNet.ProjectModel.Loader for making a load context from Microsoft.DotNet.ProjectModel.ProjectContext. Bear in mind this only works on the "project.json" project system. I have not yet successfully implemented a version that works with the project system work happening on https://github.com/microsoft/msbuild/tree/xplat or one that is project-system agnostic. |
That's great, thanks. It's good to some real world usage of |
Moved to core-setup to keep close to dependencycontext. |
I am attempting to solve the problem of creating an AssemblyLoadContext from a class library project (dotnet/efcore#5320) with only 3 inputs: dependency context, nuget package directory, and application base path. (NB: no project context)
Problem
The build trims "runtimeTargets" from the deps.json file. In order to execute code from an ALC, we need all runtime and native assets.
Steps to reproduce
Create and compile netstandard project
Expected
Actual
cc @davidfowl
The text was updated successfully, but these errors were encountered: