Why should I choose an ASP.NET kernel with a .Net kernel?

Now I see that there are two options when creating the main ASP.net web application.

  • ASP.Net core web application with .Net Core
  • Primary ASP.NET Web Application with .Net Framework

I understand that the first of them allows us to run it in any linux, mac, windows environment without first installing .net.

Of course, I will only run my WebAPI on Windows. In that case, which one should I choose? The main ASP.Net web application with the main .NET web application or the ASP.Net with the .NET framework?

What is the advantage of choosing an ASP.Net core web application with .Net Core when I plan to run only on Windows? I need to create a new WebAPI. Dependencies are not a problem, it will be a very simple basi web api, so I believe that I can do it in any of them without any dependencies on some old component that is built on .Framework 4.6. *

Also, what is the difference between ASP.NET Core Web Application with .Net Framework and ASP.NET Web Application with .Net Framework?

+6
source share
2 answers

There are several benefits to using .NET Core:

  • Smaller applications because you only include packages that you need.
  • Smaller attack area due to # 1: you include only what your application actually uses.
  • Easy deployment if you are heading to an offline application route.
  • (possibly) Improved support and long-term upgradeability
  • The ability to switch to Linux hosting in the future

The biggest drawback is that some NuGet packages may not work (yet) on .NET Core. Based on what your application uses, this may be the ultimate decision making factor.

+7
source

Your application can target until you have a dependency on a package that only works on the full .net infrastructure. For example: NHibernate. Then you need to configure only the complete .net infrastructure.

ASP.Net (.NET Framework) web application is designed to create projects in the old format (for example: WebForms)

Asp.Net Core Web Applications - is the creation of projects in a new format. You can then set up a basic or complete .net infrastructure.

You can find more information here .

0
source

All Articles