[英]Which version of the .NET Framework is IIS using for my AppPool?
.Net Framework 4.5 was installed on my machine and on the IIS Application Pool, I set the .NET CLR version to 4.0. .Net Framework 4.5 安装在我的机器和 IIS 应用程序池上,我将 .NET CLR 版本设置为 4.0。
My question is when running .NET code in this IIS site, which framework version is it using: 4.0 or 4.5 ?我的问题是在这个 IIS 站点中运行 .NET 代码时,它使用的是哪个框架版本: 4.0 或 4.5 ?
Please see below screen shots.请参阅下面的屏幕截图。
The AppPool's .NET CLR Version is different from the .NET Framework Version. AppPool 的 .NET CLR 版本与 .NET Framework 版本不同。
The .NET CLR Version 4.0 is the CLR base for the following .NET Framework Versions: .NET CLR 4.0 版是以下 .NET Framework 版本的 CLR 基础:
So having a .NET CLR Version of 4.0 just means you support the above Frameworks, which will run under their deployed framework version.因此,拥有 .NET CLR 版本 4.0 仅意味着您支持上述框架,这些框架将在其部署的框架版本下运行。
Source: https://docs.microsoft.com/en-us/dotnet/standard/clr#clr-versions来源: https : //docs.microsoft.com/en-us/dotnet/standard/clr#clr-versions
Here is a full mapping of CLR to .NET Framework versions, based off this official documentation.这是基于此官方文档的 CLR 到 .NET Framework 版本的完整映射。 https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/versions-and-dependencies#version-information
https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/versions-and-dependencies#version-information
CLR 1.0
CLR 1.0
.NET Framework 1.0
.NET 框架 1.0
CLR 1.1
CLR 1.1
.NET Framework 1.1
.NET 框架 1.1
CLR 2.0
CLR 2.0
.NET Framework 2.0
.NET 框架 2.0
.NET Framework 3.0
.NET 框架 3.0
.NET Framework 3.5
.NET 框架 3.5
CLR 4
CLR 4
.NET Framework 4
.NET 框架 4
.NET Framework 4.5
.NET 框架 4.5
.NET Framework 4.5.1
.NET 框架 4.5.1
.NET Framework 4.5.2
.NET 框架 4.5.2
.NET Framework 4.6
.NET 框架 4.6
.NET Framework 4.6.1
.NET 框架 4.6.1
.NET Framework 4.6.2
.NET 框架 4.6.2
.NET Framework 4.7
.NET 框架 4.7
.NET Framework 4.7.1
.NET 框架 4.7.1
.NET Framework 4.7.2
.NET 框架 4.7.2
.NET Framework 4.8
.NET 框架 4.8
Follow the below steps to get the .Net Version Used by IIS.按照以下步骤获取 IIS 使用的 .Net 版本。
Versions of .Net above 4.0 are being upgraded as in-place and the installed version can be checked in the registry path - HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full\\release or version 4.0 以上的 .Net 版本正在就地升级,可以在注册表路径中检查安装的版本 - HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full\\release or version
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.