将ASP.net Core 2.0部署到Azure [英] Deploying ASP.net Core 2.0 to Azure

查看:76
本文介绍了将ASP.net Core 2.0部署到Azure的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已通过以下步骤将ASP.net Core 1.1应用程序升级到ASP.net Core 2.0:

I have upgraded an ASP.net Core 1.1 app to ASP.net Core 2.0 with the following steps:

  • 将目标框架更改为2.0
  • 升级了所有Nugget软件包

现在,我从git进行的自动部署运行,并说成功了,但该应用程序未运行.我收到以下错误:

Now my auto deployment from git runs and says it is successful but the app does not run. I get the following error:

HTTP Error 502.5 - Process Failure

我还添加了一个单独的Web应用程序部署插槽,并尝试将其部署到该插槽中,但仍然得到相同的结果.我也尝试过手动将其部署到缓慢的位置,并且没有任何变化.

I also added a separate web app deployment slot and tried deploying it there and still get the same result. I have also tried deploying it manually to the slow and no change.

推荐答案

我必须在解决方案中的全部 .csproj文件中添加以下内容

I had to add the following to all the .csproj files in the solution

<ItemGroup>
    <DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.0" />
  </ItemGroup>

这篇关于将ASP.net Core 2.0部署到Azure的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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