美文网首页
.Net Core Your startup project

.Net Core Your startup project

作者: Rinaloving | 来源:发表于2022-12-18 10:35 被阅读0次

    1. 问题

    位于命令管道位置 1 的 cmdlet Add-Migration
    请为以下参数提供值:
    Name: Add_Audit
    Build started...
    Build succeeded.
    Your startup project 'Trade.Ghost.EntityFramework' doesn't reference Microsoft.EntityFrameworkCore.Design. This package is required for the Entity Framework Core Tools to work. Ensure your startup project is correct, install the package, and try again.
    PM>

    数据迁移报错.png

    2. 解决

    • 不要更改启动项,我把启动项改为 Trade.Ghost.EntityFramework,改回项目启动项就行了(有Startup.cs 那个)

    相关文章

      网友评论

          本文标题:.Net Core Your startup project

          本文链接:https://www.haomeiwen.com/subject/uuqeqdtx.html