dotnet / dotnet/command-line-api

v2 breaks dotnet-ef with failure to load System.Runtime v6 when it uses .NET 7's copy of it.

Open
#1,678 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
3.7k
Forks
428
PR merge metrics
No merged PRs in 30d

Description

I have identified that my inability of using the updated ``dotnet-ef`` tool (installed locally in my project) when it tries to scaffold anything might be related it System.CommandLine trying to load v6 of System.Runtime into the default AssemblyLoadContext after the .NET 7 runtime loaded it's v7 version into the default context.

Context:
![image](https://user-images.githubusercontent.com/15173749/158929055-87df8671-8e1f-40a4-9635-ac5edc58cd3f.png)
![image](https://user-images.githubusercontent.com/15173749/158929080-15c7d37d-c600-4ec9-ba87-bd9efbab4168.png)

EFCore Issue for more information: https://github.com/dotnet/efcore/issues/27660

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.