I'm using .NET 5 with Rider and trying to install do.net-ef for working with migrations.
I got next packages installed:
But when typing do.net tool install -g do.net-ef
in the terminal i get the error, which says:
Package do.net-ef 5.0.7 is not compatible with.net50 (.NETFramework,Version=v5.0) / any. Package do.net-ef 5.0.7 supports:.netcoreapp3.1 (.NETCoreApp,Version=v3.1) / any
Even when I run CMD as an admin I get the same error
So I clearly see that the latest version of do.net-ef is for .NET 3.1. Is that really true? Is there no version of do.net-ef for .NET 5? What can I be doing wrong?
I tried different versions of do.net-ef and got different kinds of this error (depending on the choosen version).
Write in the comments if you need any other info.
I got the same error when I try to use nuget to get the do.net-ef: But I tried in package manager console:
dotnet tool install --global dotnet-ef
and it works (difference is the --global). Source: https://learn.microsoft.com/en-us/ef/core/cli/do.net
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.