Metapackage

Metapackage is a reference or dependency that is added to a .NET Core project in addition to the already referenced target framework in the project. For example, you can add Microsoft.NETCore.App or NetStandard.Library to a .NET Core project.

At times, it is required to use a set of packages in a project. This is done through the use of metapackages. Metapackages are groups of packages that are often used together. Also, metapackages are NuGet packages that describe a group or set of packages. Metapackages can create a framework for the packages when the framework is specified.

When you reference a metapackage, essentially a reference is made to all the packages contained in the metapackage. In essence, this makes the libraries ...

Get C# and .NET Core Test Driven Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.