Add-Migration Does Nothing
I added Microsoft.EntityFrameworkCore.Tools to my project, used the Package Manager Console, selected the Default Project which contains my context and typed "Add-Migration Initial".
Nothing happens, I just get a new command prompt, nothing is created, no error messages displayed.
Possible duplicate of #10298 Can you share details of dotnet/ef tools versions? Project type?
Microsoft.EntityFrameworkCore.Tools v2.0.1 .NET Core v.2.0.0 Project Type: class library .NET Core VS: 2017 15.4.5
Adding the work around line "<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>" mentioned in #10298 to the project file got me an error message finally (cannot find appsettings.json).
Another issue noticed though, I have to have the project with the DatabaseContext selected as the startup project in order to get the migration tool to not fail with a "could not load assembly" error. I've never needed to do this in the past.
i got the same issue please can anyone help me?
@dmuino1986 Update EF Core pacakges to version 2.0.2.
thanks bricelam it work