Why doesn't Microsoft.NETCore.App support netstandard1.6?

后端 未结 1 1508
粉色の甜心
粉色の甜心 2020-12-19 01:54

I\'m trying to get started with .NET Core and I\'m really having some headaches to understand all this new naming scheme.

Looking at the wiki netcoreapp1.0

1条回答
  •  有刺的猬
    2020-12-19 02:33

    What you use and reference depends on whether you are building an application, or a shared library:

    • If you are building an application (console, UWP, ASP.NET Core web app), you'll target netcoreapp1.0 and depend on Microsoft.NetCore.App. type: platform tells NuGet that you are referencing a platform, which doesn't get installed as a package. netcoreapp1.0 imports netstandard1.6, which means it can use libraries that also target netstandard1.6 or below.

    • If you are building a library (to be consumed by another library or application), you'll target netstandard1.X and either depend on NETStandard.Library or directly reference the NuGet packages you need.

    0 讨论(0)
提交回复
热议问题