【发布时间】:2018-11-06 14:21:49
【问题描述】:
我正在使用 ASP.NET 2017 构建 Razor Page 应用程序。当我运行命令时
dotnet aspnet-codegenerator razorpage -m Activity -dc CongContext -udl -outDir Page\Activities --referenceScriptLibraries
出现这个错误:
无法加载文件或程序集“Microsoft.EntityFrameworkCore, 版本=2.0.3.0,文化=中性,PublicKeyToken=adb9793829ddae60'。 找到的程序集的清单定义与程序集不匹配 参考。 (HRESULT 异常:0x80131040)
我停止并重新启动了 VS,我还清理并构建了解决方案。 Attached jpg shows the code I typed and the results
【问题讨论】: