difference between NETStandard.Library and Microsoft.NETCore.App?

displayname 1 Reputation point
2020-12-12T01:09:58.14+00:00

I wanted to know the difference between the NETStandard.Library package and the Microsoft.NETCore.App package. I tried to look up documentation but it's all very broad or they sound very similar saying both packages are a set of .NET API's. Is there a difference in the runtimes they can operate on (like Microsoft.NETCore.App is compatible with .netcore but not .netstandard)?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,525 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,478 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Lex Li (Microsoft) 4,817 Reputation points Microsoft Employee
    2020-12-12T06:34:03.027+00:00

    Microsoft.NETCore.App is the actual implementation of .NET Core runtime, and NETStandard.Library is the actual implementation of .NET Standard.

    Their relationship has been fully documented by Microsoft in multiple locations, such as

    2 people found this answer helpful.
    0 comments No comments

  2. Sardou Noureddine 241 Reputation points
    2020-12-12T09:49:57.557+00:00

    hi @displayname

    basically,

    Microsoft.NETCore.App metapackage contains the .NET Core runtime and supporting managed libraries.
    Note that this metapackage has a reference to NETStandard.Library, and contains all other packages required to run a .NET Core app.

    NETStandard.Library metapackage references a set of packages that define the .NET Standard library.
    ".NET Standard is a formal specification of .NET APIs that are available on multiple .NET implementations. The motivation behind .NET Standard was to establish greater uniformity in the .NET ecosystem.", Used ofter as class library compatible with .NETCore .NETFramework and Xamarin

    47544-image.png

    0 comments No comments