Azure App Services更新时是否需要将Web应用程序更新为目标.NET 4.8? [英] Is it required to update web apps to target .NET 4.8 when Azure App Services update?

查看:103
本文介绍了Azure App Services更新时是否需要将Web应用程序更新为目标.NET 4.8?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此帖子询问何时在Azure App Service上提供4.8支持: 对.NET 4.8的Azure支持

This post asked when 4.8 support would be available on Azure App Service: Azure support for .NET 4.8

评论者询问是否也必须更新您的应用程序,这是一个很好的问题.

A commenter asked if it's compulsory to update your apps as well, which is a great question.

Microsoft电子邮件对所有应用程序服务客户进行了抨击,因此他们似乎非常重视此更新,但是如果需要进行全面更新,他们并没有花太多时间(2020年7月14日).

Microsoft email blasted all app service customers so they seem to be taking this update pretty seriously, but didn't leave much time (July 14, 2020) if a full update is required.

问题是-我们必须更新到4.8吗?

The question is -- do we have to update to 4.8?

推荐答案

简而言之:必修,否;明智的,是的.

In short: Compulsory, no; advisable, yes.

假设您的应用程序已经定位到受支持的.NET版本(当前> = 4.5.2),则不必将应用程序重新定位到4.8.特别是如果您不打算利用任何新功能.请参阅. NET文档 :

Assuming your apps are already targeting a supported version of .NET (currently >= 4.5.2), then retargeting your apps to 4.8 is not compulsory. Particularly if you do not plan to take advantage of any new features. See .NET docs:

.NET Framework的

4.x版本可用于运行通过该版本为.NET Framework 4.0构建的应用程序.例如,.NET Framework 4.7可用于运行为.NET Framework 4.0至4.7构建的应用程序.最新版本(.NET Framework 4.8)可用于运行从4.0版开始使用所有.NET Framework版本构建的应用程序.

4.x versions of the .NET Framework can be used to run applications built for the .NET Framework 4.0 through that version. For example, .NET Framework 4.7 can be used to run applications built for the .NET Framework 4.0 through 4.7. The latest version (the .NET Framework 4.8) can be used to run applications built with all versions of the .NET Framework starting with 4.0.

至少,您可以可以对运行在4.8上的应用程序进行一些回归测试,然后再上线.要获得信心需要进行多少测试,以及打破变更的机会,很大程度上取决于您当前所针对的版本.

As a minimum, you could run some regression tests against your app running on 4.8 before going live. How much testing it takes to gain confidence, and the chances of breaking changes, depends largely on what version you are currently targeting.

但是,理想情况下,如果您能够针对4.8重新定位,构建和部署,那么编译器甚至可以更早地发现很多意外行为.请注意,有时某些更改需要更改代码,再次,这种可能性很大程度上取决于您当前的目标.

Ideally however, if you are in a position to retarget, build and deploy for 4.8, then a lot of unexpected behaviour can be caught even earlier by the compiler. Note that there are sometimes changes that require code changes and again, the likelihood depends very much on what you target at present.

要了解您可能需要在代码中执行的工作:

To get an idea of what work you might need to do in your code:

  • Details of breaking changes between versions, up to and include 4.8, are OSS and indexed in the .NET docs on GitHub
  • Broader documentation around migrations are detailed here.

截至2020年6月26日,我还没有任何计划来适应在升级日期之前在4.8上运行于App Service中的测试应用程序,这意味着您将只能在本地4.8上进行测试.

As of 26.6.2020 I am not aware of any plans to accommodate testing apps running in an App Service on 4.8 before the upgrade date, which means you will only be able to test on 4.8 locally.

这篇关于Azure App Services更新时是否需要将Web应用程序更新为目标.NET 4.8?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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