ABP 项目部署

2019-05-04 11:05:28 +08:00
 guozhigq

在控制台 Update-database 时 提示 the peoject " 项目名称 " failed to build,在网上没有找到解决办法

2360 次点击
所在节点   2019
8 条回复
libasten
2019-05-04 11:20:28 +08:00
本地生成这个项目成功吗?
guozhigq
2019-05-04 11:23:51 +08:00
@libasten 就是在本地部署的 直接在官网下载的模板
guozhigq
2019-05-04 11:28:17 +08:00
简书上说 因为解决方案有多个项目,虽然当前项目编译成功了,但其他项目没有,所以报错。
huiyuanai709
2019-05-04 13:31:17 +08:00
进入 EntityFrameworkCore 执行 Update-Database 或者 dotnet ef database update
icyflash
2019-05-04 14:23:54 +08:00
4 楼正解 官方文档里说了的
guozhigq
2019-05-04 15:50:17 +08:00
@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
guozhigq
2019-05-04 16:27:30 +08:00
@huiyuanai709 输入“ dotnet ef database update ”提示“ No project was found. Change the current working directory or use the --project option ” 是因为我的默认项目路径没选对么 默认项目:src\MyProject.EntityFrameworkCore
huiyuanai709
2019-05-04 22:27:12 +08:00
@guozhigq 在 EntityFrameworkCore 目录下执行命令,nuget 那里也有选择项目的地方,不是启动默认项目。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/560816

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX