EF6 实体数据模型设计器不适用于目标框架 .net 5.0

EF6 Entity Data Model Designer not available with target framework .net 5.0

我有一个现有的基于 .NET Framework 的解决方案,我正在将其迁移到 .net 5.0。我现在不迁移数据访问:我们将继续使用 EF6 模型优先。将项目转换为 .net 5.0 后,我尝试打开 .edmx 文件只得到一条消息:

The Entity Data Model Designer is unable to display the file you requested. The Entity Framework is not available in the target framework currently specified for the project. You can change the target framework of the project or edit the model in the XML Editor.

目标框架是net5.0

这应该有效吗?

否,根据 EF docs:

There's currently no support for using the EF designer directly on .NET Core or .NET Standard projects or on an SDK-style .NET Framework project.

感谢@ErikEJ a detailed walkthrough of a workaround