IServerVariablesFeature serverVars = HttpContext.Features.Get<IServerVariablesFeature>();
string iis_version但是,以这种方式访问IIS服务器变量似乎已经停止了在Asp.Net Core3.x中的工作。如何访问IIS服务器变量(即。 in Asp.Net 5.x?
我在Windows 2012 R2上安装了R2 7预览,但是安装的版本没有显示在运行时列表中。同时,在IIS上运行测试应用程序也不起作用。Exception message:The framework 'Microsoft.NETCore.App- The following frameworks were found: