【发布时间】:2016-09-28 08:02:32
【问题描述】:
我有 ASP.NET Core API,它有几个依赖项。一切都在我的本地机器上构建良好。当我尝试在 Azure 上部署它时,我遇到了从第一个具有依赖项的项目开始的错误:
Metadata file 'D:\home\site\repository\artifacts\bin\MyProject.EventStore\MyProject.Bus\bin\Release\dnx451\MyProject.Bus.dll' could not be found [D:\home\site\repository\MyProject.EventStore\MyProject.EventStore.xproj]
根据日志MyProject.Bus 项目构建没有错误。
我担心的是,在日志输出中我注意到了这一点:
D:\Program Files (x86)\dotnet\dotnet.exe build "D:\home\site\repository\MyProject.EventStore" --configuration Release --no-dependencies --build-base-path "D:\home\site\repository\artifacts\bin\MyProject.EventStore"
我不确定 Azure 为何会使用 --no-dependencies 密钥构建项目
编辑: 我正在尝试使用 Azure Web App 支持的 CI 从 Github 存储库部署我的项目
【问题讨论】:
-
我得到了同样的结果。你能追踪到任何东西吗?
-
@DouglasLudlow 我刚刚回答了这个问题。也许这不是您正在寻找的解决方案,但至少它是……
标签: azure asp.net-core