I'm having a problem adding a controller to my project. Initially, I was getting the error described here: There was an error running the selected code generator: Could not load file or assembly Microsoft.EntityFrameworkCore, version = 2.0.1.0
The suggested solution is to update AspNetCore.All in Nuget. I tried this, failed, and then updated EFCore to 3.0. Since my original post, I've managed to upgrade to ASP.net core 2.1 and reverted EF to 2.2. However, the error I'm getting on adding a controller is the same:
There was an error running the selected code generator Method not found: 'Void >Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations..ctor Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter, System.Reflection.Assembly, System.Reflection.Assembly)'.
The project builds OK, and runs OK in debug mode.
Is there an easy solution to this, or do I need to downgrade EFCore (how?), or build controllers by hand from now on?