.NET Standard vs .NET Core

后端 未结 7 466
北恋
北恋 2020-11-30 16:24

I have read about the difference between .NET Standard and .NET Core, but I really don\'t know what the difference is, or when to choose a .NET Standard library project and

7条回答
  •  执笔经年
    2020-11-30 17:01

    .NET Standard is a specification of .NET APIs intended to be available on .NET implementations. This enables to define uniform set of BCL APIs for all .NET implementations.

    .NET Core is one such implementation of .NET Standard. .NET Framework is another implementation of .NET Standard.

    Image from .NET Blog

    Federicos answer gives you a graphical overview of how each framework evolve with versions. Take a look at below diagram from Microsoft Docs.

    Targeting .NET Standard increases your platform support whereas targeting a particular .NET platform such as .NET Core (or .NET Framework) will allow you to use all the platform features for that platform.

提交回复
热议问题