gpt4 book ai didi

asp.net-core - ASPNetCoreModule 和 ASPNetCoreModuleV2 有什么区别?

转载 作者:行者123 更新时间:2023-12-04 11:23:06 25 4
gpt4 key购买 nike

我想知道 ASPNetCoreModule 和 ASPNetCoreModuleV2 之间的区别,什么时候在什么场景下使用它们。

最佳答案

  • ASPNetCoreModule (“版本 1”)是 IIS 模块,它使 IIS 能够在 ASP.NET Core 1.x 和 2.x 应用程序在 .NET Core 中运行时运行它们
  • ASP.NET Core 1.x 和 2.x(但不是 ASP.NET Core 3.x 及更高版本)can alternatively run on top of .NET Framework , 而不是 .NET Core,在这种情况下,您可以使用 IIS 的内置 CLR 管道而无需 ASPNetCoreModule .
  • 版本 1 已停产,removed from the ASP.NET GitHub repo in January 2019 .您今天使用 V1 的唯一原因是您是否仍在运行 ASP.NET Core 1.x 应用程序。
  • 无论如何你不应该这样做。


  • ASPNetCoreModuleV2支持 ASP.NET Core 2.0 及更高版本(包括 ASP.NET Core 3.x、.NET 5、.NET 6 等)。它还支持比 V1 更多的功能(例如自定义离线消息)。

  • when to use each of them in which scenario.


    这是一个流程图:
  • 您是否希望在 IIS 中运行 ASP.NET Core 应用程序(而不是在 .NET Framework 上运行)?
  • 是的:
  • 您的目标是 ASP.NET Core 1.x 吗?
  • 是的(你受虐狂)
  • 使用 ASPNetCoreModule (V1) 并更新到 ASP.NET Core 3.1 LTSB。


  • 使用 ASPNetCoreModuleV2


  • 您的目标是 ASP.NET Core 2.x、ASP.NET Core 3.x、.NET 5 还是 .NET 6?
  • 是的
  • 使用 ASPNetCoreModuleV2


  • 那么整个 StackOverflow 问题与您无关




  • 你不需要ASPNetCoreModule也不是 ASPNetCoreModuleV2



  • 简而言之:有 没有理由正在使用 ASPNetCoreModule (“V1”)今天。

    关于asp.net-core - ASPNetCoreModule 和 ASPNetCoreModuleV2 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66594260/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com