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>
2. 解决
- 不要更改启动项,我把启动项改为 Trade.Ghost.EntityFramework,改回项目启动项就行了(有Startup.cs 那个)
网友评论