
在控制台 Update-database 时 提示 the peoject " 项目名称 " failed to build,在网上没有找到解决办法
1 libasten 2019 年 5 月 4 日 via Android 本地生成这个项目成功吗? |
3 guozhigq OP 简书上说 因为解决方案有多个项目,虽然当前项目编译成功了,但其他项目没有,所以报错。 |
4 huiyuanai709 2019 年 5 月 4 日 进入 EntityFrameworkCore 执行 Update-Database 或者 dotnet ef database update |
5 icyflash 2019 年 5 月 4 日 via Android 4 楼正解 官方文档里说了的 |
6 guozhigq OP @icyflash 你好,请问是 "Open Package Manager Console and run Update-Database command to create your database (ensure that Default project is selected as .EntityFrameworkCore in the Package Manager Console window)" 这句吗,我这样做了但还是提示 failed to build |
7 guozhigq OP @huiyuanai709 输入“ dotnet ef database update ”提示“ No project was found. Change the current working directory or use the --project option ” 是因为我的默认项目路径没选对么 默认项目:src\MyProject.EntityFrameworkCore |
8 huiyuanai709 2019 年 5 月 4 日 @guozhigq 在 EntityFrameworkCore 目录下执行命令,nuget 那里也有选择项目的地方,不是启动默认项目。 |