我正在尝试使用 EF 核心迁移功能。但是当我从 NuGet 安装 dotnet-ef 工具时,会抛出以下错误消息。我的应用程序版本是 netcoreapp3.0。
dotnet tool install --global dotnet-ef --version 3.1.0-preview3.19554.8
错误 NU1202:软件包 dotnet-ef 3.1.0-preview3.19554.8 与 netcoreapp3.0 (.NETCoreApp,Version=v3.0) / any 不兼容。软件包 dotnet-ef 3.1.0-preview3.19554.8 支持:netcoreapp3.1 (.NETCoreApp,Version=v3.1) / any
老版本只支持netcoreapp2.1
dotnet tool install --global dotnet-ef --version 3.0.1
错误 NU1202:软件包 dotnet-ef 3.0.1 与 netcoreapp3.0 (.NETCoreApp,Version=v3.0) / any 不兼容。dotnet-ef 3.0.1 包支持:netcoreapp2.1 (.NETCoreApp,Version=v2.1)
实际上哪个 dotnet-ef 版本支持 netcoreapp3.0 知道吗?