【问题标题】:Deploy .NET Core project on Azure: Metadata file could not be found在 Azure 上部署 .NET Core 项目:找不到元数据文件
【发布时间】: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


【解决方案1】:

我对此可能是错误的,但是当您使用 .NET Core 1 时,似乎无法通过在 GitHub 上添加指向存储库的链接来从存储库设置部署。至少在我的情况下,我管理了查找有关在 Azure .NET Core 1 项目上部署的文档。解决方案是使用 Visual Studio 发布功能。

我知道这可能不是对我的问题的确切答案,但如果您有人急于找到解决方案,也许这会有所帮助......

【讨论】:

    猜你喜欢
    • 2017-03-31
    • 2022-07-04
    • 1970-01-01
    • 2015-12-11
    • 2022-07-14
    • 2018-07-08
    • 2021-01-11
    • 2021-09-12
    • 1970-01-01
    相关资源
    最近更新 更多