I am trying to run Add-Migration InitialCreate command from package manager console from a .NET Core 2.0 MVC application. After looking at all possible sources still not abl
I had the same issue
My solution contained a console application and an api application which contained the dbcontext code.
I had set the start up project to the console application. When I changed the start up project to the api application the error dissapeared.