每当我想通过 NetFramework 4.8 项目上的 NuGet 将 EFCore 引用更新为版本 3 时,我都会收到此错误。
我确认我的机器上安装了 netcore 3.0 SDK。
Could not install package 'Microsoft.EntityFrameworkCore 3.0.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.8', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
Run Code Online (Sandbox Code Playgroud)