术语“添加迁移”无法识别

编程入门 行业动态 更新时间:2024-10-26 06:28:41
本文介绍了术语“添加迁移”无法识别-VS2017和EntityFrameworkCore的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我发布这个问题是为了以防我发现解决方案可以帮助其他人。每次在 Visual Studio 2017 rc4 中工作时,每次尝试在程序包管理器控制台中运行 Add-Migration 命令时,出现以下错误:

I am posting this question just in case the solution I found would help someone else out. While working in Visual Studio 2017 rc4 each time I tried to run the Add-Migration command in the Package Manager console I get the following error:

术语添加迁移无法识别...

The term 'Add-migration' is not recognized...

推荐答案

在尝试了一系列其他解决方案后,对我有用的解决方案是:

The solution that worked for me after trying a whole raft of other solutions posted, was to:

  • 右键单击我的项目
  • 选择管理Nuget软件包
  • 选择浏览选项卡
  • 浓密包括预发行版本复选框
  • 安装 Microsoft.EntityFrameworkCore.Tools
  • right click on my project
  • select Manage Nuget Packages
  • select the browse tab
  • thick Include prerelease check box
  • install the Microsoft.EntityFrameworkCore.Tools

aspnetcore项目所在的Nb Visual Studio 2017似乎没有 project.json 文件。

N.b that aspnetcore project in visual studio 2017 do not seem to have the project.json file.

更多推荐

术语“添加迁移”无法识别

本文发布于:2023-11-16 22:19:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1607699.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:术语   无法识别

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!