将Azure App Service从.NET Core 3.1升级到.NET 6.0。

huangapple go评论61阅读模式
英文:

Upgrade Azure App Service to from .net core 3.1 to .net 6.0

问题

我们有一个 Azure 应用服务...几年前使用 .NET Core 3.1 创建的...当您进入门户时,.NET 版本为空白。

如果我通过 CLI 查询,例如

az webapp config show --resource-group myresourcegroup --name myazureappservice

我得到 "netFrameworkVersion": "v4.0"。

所以我可以通过 UI 更改值为 .NET 6,但如果我需要回滚,我将需要使用以下 CLI 命令进行回滚

az webapp config set --name myazureappservice --resource-group myresourcegroup --net-framework-version "v4.0"

但是然后下降不再为空白,而是显示为:

这样是否真的回滚了?很确定空白 (.NET Core 3.1) != .NET 4.8?

英文:

We have an azure app service... which was created a few years ago using .net core 3.1... and when you navigate into the portal the .net version is blank.

将Azure App Service从.NET Core 3.1升级到.NET 6.0。

If I query via the cli eg

az webapp config show --resource-group myresourcegroup --name myazureappservice

I get "netFrameworkVersion": "v4.0".

So I can change the value to .NET 6 via the UI but if I need to rollback I'll need to do so via the cli using

az webapp config set --name myazureappservice --resource-group myresourcegroup --net-framework-version "v4.0"

But then the drop is no longer blank but appears as:

将Azure App Service从.NET Core 3.1升级到.NET 6.0。

So is that actually rolled back?? Pretty sure blank (.net core 3.1) != .net 4.8?!

答案1

得分: 0

如在MSDOC中提到,.NET Core 3.1版本已经不再受支持。这可能是您在您的Web应用程序中看到这些更改的原因。

我将我的Web应用程序版本设置为3.1来进行验证:

将Azure App Service从.NET Core 3.1升级到.NET 6.0。

如您在上面突出显示的,.NET版本为空白:

将Azure App Service从.NET Core 3.1升级到.NET 6.0。

但在下拉菜单中提供了其他版本,我们可以选择所需的版本:

将Azure App Service从.NET Core 3.1升级到.NET 6.0。

那么这实际上是回滚了吗?

是的,版本反映在“Stack Settings”的.NET版本中。因此,回滚已经发生。

很确定空白(.NET Core 3.1)!= .NET 4.8吗?

是的,您是对的。 .NET Core 3.1.NET 4.8 版本是不同的。

英文:

As mentioned in MSDOC, .NET Core 3.1 version is out of support. That could be the reason you are seeing these changes in your web app.

I set the version of my web app to 3.1 to check the same:

将Azure App Service从.NET Core 3.1升级到.NET 6.0。

.NET version was blank as you highlighted above:

将Azure App Service从.NET Core 3.1升级到.NET 6.0。

But the other versions were available in the dropdown, we can opt the required version:

将Azure App Service从.NET Core 3.1升级到.NET 6.0。

>So is that actually rolled back??

Yes, the version is getting reflected in the .NET version of Stack Settings. So, the roll back happened.

>Pretty sure blank (.NET Core 3.1) != .NET 4.8?!

Yes, you are right. .NET Core 3.1 and .NET 4.8 versions are different.

huangapple
  • 本文由 发表于 2023年6月29日 15:02:49
  • 转载请务必保留本文链接:https://go.coder-hub.com/76578728.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定