httpRuntime targetFramework可以超过编译targetFramework吗?

问题描述 投票:0回答:1

我的小组有一个ASP.Net MVC 5 Web应用程序,该应用程序在4.5.2中进行了编译,我们无法轻松地将其重新编译为更高版本。我们正在通过一些远程调用遇到TLS问题,只需更改web.config使其包含<httpRuntime targetFramework="4.6.1" />就可以解决。是否需要将httpRuntime targetFramework设置为比编译目标更高的版本(当然,要在Web服务器上安装更高版本)?换句话说,是否有如下设置web.config的警告:<compilation targetFramework="4.5.2" /><httpRuntime targetFramework="4.6.1" />

c# .net web-config
1个回答
0
投票

配置到比在测试环境中工作的版本晚的版本,但是出于意外后果的考虑,我们最终将应用程序重新编译为更高版本。

© www.soinside.com 2019 - 2024. All rights reserved.