尝试搭建模型时出错

尝试搭建模型时出错

I'm building a Razor Page app using ASP.NET 2017. When I run the commanddotnet aspnet-codegenerator razorpage -m Activity -dc CongContext -udl -outDir Page\Activities --referenceScriptLibrariesThis error appears: I stopped and restarted VS, I've also cleaned and build the solution. Attached jpg shows the code I typed and the results 解决方案 This is because of different versions of packages. Check the 'Dependencies' node of your project. The Microsoft.EntityFrameworkCore and Microsoft.EntityFrameworkCore.Design must have same 2.0.3 versions.If not, delete and re-add them from [Tools] menu > [Nuget Package Manager]. Also delete the Migrations folder and repeat instructions as listed here. For more info, you may take a look at this comment 这篇关于尝试搭建模型时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-18 21:04