rudykris
rudykris

Reputation: 41

Why is Microsoft.Extensions documented under ASP.NET

Just wondering why Microsoft.Extensions library e.g. Configuration, Logging, Dependency Injection are documented under ASP.NET Core? They also can be used for other types of application.

https://learn.microsoft.com/en-us/dotnet/api/?view=aspnetcore-2.0

Upvotes: 3

Views: 72

Answers (1)

Daniel Roth
Daniel Roth

Reputation: 151

The Microsoft.Extensions.* packages are documented under ASP.NET Core for a couple of reasons:

  • They ship as part of the ASP.NET Core shared framework (which ships as part of .NET Core)
  • They were primarily developed by the ASP.NET team and are most commonly used today with ASP.NET Core

That said, you are correct that the Microsoft.Extensions.* packages can be used outside of ASP.NET Core. These packages target .NET Standard and can be used wherever the corresponding version of .NET Standard is supported (ex. .NET Core, .NET Framework, Xamarin, UWP). That's why these packages don't have "AspNetCore" in their IDs.

Upvotes: 1

Related Questions