Search code examples
asp.net.netasp.net-core.net-corenuget

Difference between Microsoft.AspNetCore.* and Microsoft.Extensions.* Nuget packages?


There seems to be a lot of overlap between Microsoft.AspNetCore.* and Microsoft.Extensions.* Nuget packages.

A few examples:

  • Microsoft.AspNetCore.Hosting vs Microsoft.Extensions.Hosting
  • Microsoft.AspNetCore.Http vs Microsoft.Extensions.Http

And there seems to be a lot of similar dependencies in them. But what should be the deciding factor(s) in choosing one or the other?


Solution

  • enter image description here enter image description here

    Asp.net Core is web app framework, and its package is for web app development.
    Extensions can be used in other applications such as WPF.
    They have some common libraries. But many AspNetCore package latest version is years ago. Extensions could be a better choice if you can use them.