IIS 上的 Net Core 框架版本 [英] Net Core Framework Versions on IIS

查看:46
本文介绍了IIS 上的 Net Core 框架版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能在 IIS Web 服务器上运行两个应用程序.一个运行 .NET Core 2.0,另一个运行 2.1?

Is it possible that on an IIS web server you have two applications running. One running .NET Core 2.0 and the other 2.1?

推荐答案

.NET Core 对于在同一 Web 服务器上运行的不同版本具有灵活性.

.NET Core is flexible regarding different versions running on the same web server.

将应用程序发布为自包含,将允许您在同一网络服务器上运行任意数量的不同版本.请参阅 .NET Core 应用程序发布概述.

Publishing an application as self-contained, will allow you to run as many different versions as you would like on the same web server. See .NET Core application publishing overview.

仅当您发布为依赖框架时,您才需要在 Web 服务器上安装特定的 .NET Core 运行时.即便如此,只要安装了运行时,您就可以发布不同版本的应用程序.

Only if you are publishing as framework-dependent would you need that specific .NET Core runtime installed on the web server. And even then you can publish applications with different versions, as long as the runtime is installed.

与 .NET Framework 不同,您将看到您的应用程序池将具有无托管代码".NET CLR 版本.

Different from .NET Framework, you will see that your Application Pool will have "No Managed Code" for the .NET CLR Version.

如果上面的链接不能帮助解决您的问题,请提供更多详细信息.

If the link above does not help resolve your issue, please provide more detail.

这篇关于IIS 上的 Net Core 框架版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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