I am trying to add an MVC Controller with views, using Entity Framework to my ASP.NET Core Web application project in VS 2017. However when I do it the following error occurs:
Method not found: 'Void Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations..ctor(Microsoft.EntityFrameworkCore.Design.Internal.IOperationReporter, System.Reflection.Assembly, System.Reflection.Assembly)'.
at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.<BuildCommandLine>b__6_0()
at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.Execute(String[] args)
at Microsoft.VisualStudio.Web.CodeGeneration.CodeGenCommand.Execute(String[] args)
Other controllers I can add, but not this one. I have set up the models around my database using pomelo.
Does anybody have any idea about what this error means and how to resolve it? I completely new to ASP.NET so any hint in the right direction would be much appreciated.