【问题标题】:The specified deps.json does not exist on MacMac 上不存在指定的 deps.json
【发布时间】:2019-11-11 11:23:03
【问题描述】:

在运行时遇到挑战,在 Mac 上使用 entity framework MVC 进行迁移,正在使用 CLI 和 .net 版本 2.2 的 SDK。

下面是正在使用的命令:

dotnet ef migrations add MyFirstMigration

但是我收到了这个错误:

指定的deps.json [/Users/idrislutaaya/Desktop/Workspace/LibraryManagement/bin/Debug/netcoreapp2.2/LibraryManagement.deps.json] 不存在

在这里尝试了一些以前的解决方案,但没有运气,例如 Example 1

解决办法是什么?

【问题讨论】:

  • 你使用这样的文件 afayk 吗?也许你可以在那里添加它。
  • 不,请问@Nikolaus 是什么?

标签: c# macos entity-framework .net-core asp.net-core-mvc


【解决方案1】:

我在 Mac 上通过卸载所有 dotnet SDK 版本解决了这个问题,然后我只安装了一个版本 (2.2.300)。

我的版本有冲突。

【讨论】:

    猜你喜欢
    • 2017-05-26
    • 2020-05-27
    • 2019-10-23
    • 2023-02-01
    • 1970-01-01
    • 2021-08-31
    • 2017-08-03
    • 1970-01-01
    • 2020-05-21
    相关资源
    最近更新 更多