App Service - Linux .NET Core 2.2 - Git部署失败 [英] App Service - Linux .NET Core 2.2 - Git deployment failure

查看:78
本文介绍了App Service - Linux .NET Core 2.2 - Git部署失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近注意到.NET Core 2.2的运行时堆栈刚刚可用于Linux。

I noticed recently that the runtime stack for .NET Core 2.2 has just became available for Linux.

我将我的应用服务切换为使用2.2但是当我尝试从git部署更新的项目时,我收到以下错误:

I switched my app service to use 2.2 but when I attempt to deploy my updated project from git, I get the following error:

" /usr/share/dotnet/sdk/2.1.300/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(137,5):错误:当前的.NET SDK不支持定位。 NET Core 2.2。 要么是.NET Core 2.1或更低版本,要么使用支持.NET Core 2.2的.NET SDK版本
。 [/ home / site / repository / ... / .... csproj]"

然后我在Kudu bash控制台中运行了dotnet --info,它看起来很像像只安装了2.1:

I then ran dotnet --info in the Kudu bash console and it looks like only 2.1 is installed:

以下是我的应用服务设置:

Here's how my app service settings:

这是一个问题,还是我错过了一些过程中的问题升级?

Is this an issue, or have I missed something in the process of upgrading?

不要害怕询问,有人总是愿意帮忙!

Don't Be Scared To Ask, Someone Is Always Willing To Help!

推荐答案

谢谢你提出这个问题了!能否请您提供此更新所指的公告/ URL?

请查看此网址
App Core服务上的.NET Core 2.2可用性

Kindly checkout this URL .NET Core 2.2 availability on App Service for the announcement.

如果您还没有这样做,那么就像测试一样
尝试配置项目以使用现有的ANCM的版本设置 
AspNetCoreModule   property
到值"AspNetCoreModule"
作为
提到这个
文件

.NET Core 2.2已知
问题。  

If you haven’t done this already, just as a test you may try configuring your project to use the existing version of ANCM by setting the AspNetCoreModule property to the value "AspNetCoreModule"as mentioned this document and .NET Core 2.2 Known Issues.  


这篇关于App Service - Linux .NET Core 2.2 - Git部署失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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