Microsoft.DotNet.Cli.Utils.CommandUnknownException: No executable found matching command "dotnet-migrations"

.net-core asp.net-core c# entity-framework-core

Question

I'm trying to add a migration to a project that uses Entity framework 2.1.4. I've been editing the files by hand, but was told the following was the right way:

Running 'dotnet -d migrations add test -c OurContext' but, it gives me the error:

dotnet : Microsoft.DotNet.Cli.Utils.CommandUnknownException: No executable found matching command "dotnet-migrations"

It won't let me delete this question, but the answer was that the person who gave me the command left out the 'ef' in the command. (thanks for the down vote whomever did good grief)

1
-1
8/13/2019 10:03:56 PM

Accepted Answer

It's dotnet ef migrations. You left out the ef part. The actual global tool is dotnet-ef, when you just have dotnet migrations, it's looking for a dotnet-migrations global tool, which is not a thing.

1
8/13/2019 8:20:37 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow