guozhigq
0.17D
V2EX  ›  2019

ABP 项目部署

  •  
  •   guozhigq · May 4, 2019 · 3527 views
    This topic created in 2760 days ago, the information mentioned may be changed or developed.

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

    8 replies  •  2019-05-04 22:27:12 +08:00
    libasten
    libasten
    May 4, 2019 via Android
    1
    本地生成这个项目成功吗?
    guozhigq
    guozhigq
    OP
    May 4, 2019
    2
    @libasten 就是在本地部署的 直接在官网下载的模板
    guozhigq
    guozhigq
    OP
    May 4, 2019
    3
    简书上说 因为解决方案有多个项目,虽然当前项目编译成功了,但其他项目没有,所以报错。
    huiyuanai709
    huiyuanai709
    May 4, 2019
    4
    进入 EntityFrameworkCore 执行 Update-Database 或者 dotnet ef database update
    icyflash
    icyflash
    May 4, 2019 via Android
    5
    4 楼正解 官方文档里说了的
    guozhigq
    guozhigq
    OP
    May 4, 2019
    6
    @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
    guozhigq
    OP
    May 4, 2019
    7
    @huiyuanai709 输入“ dotnet ef database update ”提示“ No project was found. Change the current working directory or use the --project option ” 是因为我的默认项目路径没选对么 默认项目:src\MyProject.EntityFrameworkCore
    huiyuanai709
    huiyuanai709
    May 4, 2019
    8
    @guozhigq 在 EntityFrameworkCore 目录下执行命令,nuget 那里也有选择项目的地方,不是启动默认项目。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1592 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 00:04 · PVG 08:04 · LAX 16:04 · JFK 19:04
    ♥ Do have faith in what you're doing.