Why use the full .NET Framework with ASP.NET Core?

后端 未结 5 684
死守一世寂寞
死守一世寂寞 2020-12-24 06:52

With ASP.NET Core 1.0 release one can run on either .NET Core or the full .NET Framework per the documentation here. I\'m trying to understand the latter option of

5条回答
  •  温柔的废话
    2020-12-24 07:16

    One thing to consider is that it can be a migration path. Say, for example, you have an existing ASP.NET 4.6 application that you intend to migrate to .NET Core. You want to take advantage of ASP.NET Core features like TagHelpers, Dependency Injection, etc., but you aren't ready or able to use .NET Core framework. So, you develop the ASP.NET Core application, targeting just the .NET full framework. Then, you take the next step and multi-target, going for both .NET full framework and .NET Core framework. This gives you the flexibility to easily deploy to IIS with the full framework or cross-platform with the core framework. From there, you can decide if you want to eliminate the full framework or not.

提交回复
热议问题