C# ASP.NET Core创建视图获取错误

C# ASP.NET Core创建视图获取错误,c#,asp.net-core,C#,Asp.net Core,我尝试为我的控制器生成一个视图,但出现错误 未找到方法:'void' >Microsoft.EntityFrameworkCore.Desing.Internal.DbContextOperation.ctor >{Microsoft.EntityFrameWorkCore.Design.Internal.IoperationReporter, >System.Reflection.Assembly,System.Reflection.Assembly}您应该将NuGet包Microsoft.

我尝试为我的控制器生成一个视图,但出现错误

未找到方法:'void' >Microsoft.EntityFrameworkCore.Desing.Internal.DbContextOperation.ctor >{Microsoft.EntityFrameWorkCore.Design.Internal.IoperationReporter,
>System.Reflection.Assembly,System.Reflection.Assembly}您应该将NuGet包
Microsoft.AspNetCore.All
更新到最新版本(2.1.2)