英文:
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.
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:
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来进行验证:
如您在上面突出显示的,.NET版本为空白:
但在下拉菜单中提供了其他版本,我们可以选择所需的版本:
那么这实际上是回滚了吗?
是的,版本反映在“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:
.NET version was blank as you highlighted above:
But the other versions were available in the dropdown, we can opt the required version:
>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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论