简体   繁体   English

Azure App Service 和 .Net Framework 版本

[英]Azure App Service and .Net Framework versions

I have an Asp.Net Web API set to target .NET 4.6.1 which is published to an Azure App Service.我有一个 Asp.Net Web API 设置为目标 .NET 4.6.1 发布到 Z3A5150F1428203677 服务。

I received a notification from Microsoft about the imminent move to .NET 4.8 for Azure App Service.我收到了来自 Microsoft 的通知,关于即将针对 Azure 应用服务迁移到 .NET 4.8 的通知。

The notification recommends I test my applications locally.该通知建议我在本地测试我的应用程序。

I can see that v4.6.1 is an installed version of .NET framework for my Azure App Service:我可以看到 v4.6.1 是我的 Azure 应用服务的 .NET 框架的安装版本:

在此处输入图像描述

Two questions:两个问题:

  1. Given v4.6.1 exists will my Web API continue to use v4.6.1 regardless of the later versions of .NET framework that are present?鉴于 v4.6.1 存在,我的 Web API 是否会继续使用 v4.6.1,无论是否存在更高版本的 .NET 框架?
  2. What (if any) testing is needed prior to the v4.8 App Service Update?在 v4.8 应用服务更新之前需要进行哪些(如果有)测试? Is it just a case of building it locally using v4.8 to confirm it builds/runs, or is a thorough batch of regression testing warranted?这只是使用 v4.8 在本地构建它以确认它构建/运行的情况,还是需要进行彻底的回归测试?
  1. "Given v4.6.1 exists" is not a valid assumption. “鉴于 v4.6.1 存在”不是一个有效的假设。 What you saw is merely the referenced assemblies installed on your local machine for development.您看到的只是安装在本地机器上用于开发的引用程序集。 Even if your code is compiled against v4.6.1 referenced assemblies, at runtime it is executed by the actual runtime version (v4.6.1 or above), so the actual behaviors are controlled by that runtime.即使您的代码是针对 v4.6.1 引用的程序集编译的,在运行时它也会由实际的运行时版本(v4.6.1 或更高版本)执行,因此实际行为由该运行时控制。

  2. That's another subjective thing.那是另一个主观的东西。 Most enterprises will choose a thorough batch of regression testing, though individual developers might choose to simply compile/run.大多数企业会选择彻底的一批回归测试,尽管个别开发人员可能会选择简单地编译/运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM