部署在Azure .NET核心项目:元数据文件找不到 [英] Deploy .NET Core project on Azure: Metadata file could not be found

查看:205
本文介绍了部署在Azure .NET核心项目:元数据文件找不到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有依赖若干ASP.NET核心API。一切都建立在我的本地机器上的罚款。当我尝试将其部署到Azure中我得到了与依赖关系的首个项目启动错误:

I have ASP.NET Core API that has several dependencies. Everything builds fine on my local machine. When I try to deploy it on Azure I'm getting errors that start with the first project with dependencies:

元数据文件'D:\\home\\site\\repository\\artifacts\\bin\\MyProject.EventStore\\MyProject.Bus\\bin\\Release\\dnx451\\MyProject.Bus.dll'找不到[D:\\家\\网站\\库\\ MyProject.EventStore \\ MyProject.EventStore.xproj]

MyProject.Bus 项目建立没有错误日志。
我担心的是,在日志输出我已经注意到了这一点:

According to the log MyProject.Bus project builds without errors. What concerns me is that in the log output I have noticed this:

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中建立项目 - 不依赖

编辑:
我试图通过使用CI部署从GitHub库我的项目是由Azure的Web应用程序支持

I'm trying to deploy my project from Github repository by using CI that is supported by Azure Web App

推荐答案

我可能是错关于这一点,但它似乎没有办法通过在GitHub上添加一个链接库来设置从存储库的部署,当你重新使用.NET的核心1.在我的情况下,至少我设法找到一个关于在Azure上.NET核心1项目部署文档。而且该解决方案有使用Visual Studio发布功能。

I could be wrong about this but it does seem that there is no way to set deployment from a repository by adding a link to the repository on GitHub when you're using .NET Core 1. In my case at least I managed to find a documentation about deploying on Azure .NET Core 1 project. And the solution there is to use Visual Studio publish feature.

我明白,这也许不是一个确切的回答我的问题,但如果你有人急于找到一个解决方案,也许这将有助于...

I understand that it maybe is not an exact answer to my question but if you someone is desperate to find a solution maybe this will be helpful...

这篇关于部署在Azure .NET核心项目:元数据文件找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆