.NETPlatform与.NETStandard [英] .NETPlatform vs .NETStandard

查看:51
本文介绍了.NETPlatform与.NETStandard的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这些天来,我对.NET中有关平台的术语感到非常困惑-在使用PCL之前,我一直都很了解它.

I'm really confused about the terminology around the platforms in .NET these days - I used to understand it up until we had the PCLs.

我找到了以下文件:

对于初学者,第一个文档将概念平台称为"netstandard",称为".NET Platform Standard".后者将其称为".NET Standard"(同时引入了新的".NET Standard Library").

For starters, the first document refers to the conceptual platform with the moniker "netstandard" as ".NET Platform Standard". The latter calls it ".NET Standard" (at the same time it introduces a new ".NET Standard Library").

我真的不明白为什么第一个文档的顶部有一个免责声明,而第二个文档描述了后续概念:在第一个文档中,至少显示版本关系的表似乎是新的.

I don't really get why the first document has a disclaimer at the top that the second describes the successor concept: It seems that at least the table showing the version releationships is newer in the first document.

那么".NET平台标准"和".NET标准库"之间的区别是什么?第二个文档中描述所谓新概念的表仅显示了基本上是旧表的内容,而没有针对此新的".NET Standard Library"添加新行-好像这些概念毕竟是相同的.免责声明真的只是在建议重命名吗?

So what is the difference between the concepts ".NET Platform Standard" and ".NET Standard Library"? The table in the second document describing the allegedly new concept just show what is basically the old table, without a new row for this new ".NET Standard Library" - as if the concepts were the same after all. Is the disclaimer really just suggesting a renaming?

NuGet增加了更多的奥秘:

NuGet adds more mystery:

Json.NET NuGet程序包有一个名为".NETStandard"的目标(显然,NuGet在其中一种情况下使用第三个绰号),我想这应该与"netstandard"相同,对吗?正确的是哪个实际上是".NET平台标准"?

The Json.NET NuGet package has a target called ".NETStandard" (apparantly NuGet uses a third moniker for one of those things) and I presume this is supposed to be the same thing as "netstandard", right? Which is actually the ".NET Platform Standard", correct?

Microsoft.AspNet.Mvc 包的RC具有一个名为".NETPlatform 5.4"的目标.那是什么它的名称有所不同,其版本太高而与.NET Platform Standard或.NET Standard Library没有关系,无论两者之间可能是什么关系.嗯.

The RC of the Microsoft.AspNet.Mvc package has a target called ".NETPlatform 5.4". So what's that? It's called differently and has a version that's way too high to have anything to do with the .NET Platform Standard or the .NET Standard Library, whatever the relationship between the two might be. Hmmm.

有人知道这一切到底意味着什么吗?

Does anybody know what all of this really means?

我设法弄清楚了一点:正如Lex Li所说, Microsoft.AspNet.Mvc 的rc版本已经不存在了.它使用了简短的绰号"dotnet5.4",在第一个文档中确实已将其引用为不赞成使用,并长期称为".NET Platform".该软件包的当前最新版本大概是一个名为"Microsoft.AspNetCore.Mvc"的版本,它仅指未失效的目标名称.

I managed to figure out a bit more: As Lex Li said, the rc version of Microsoft.AspNet.Mvc is defunct. It uses the short moniker "dotnet5.4", which is indeed referenced in the first document as deprecated and called ".NET Platform" in long. The current newest version of the package is presumably the one called "Microsoft.AspNetCore.Mvc", which refers only to non-defunct target names.

因此解决了问题的NuGet部分,我的理论是".NET标准库"只是以前称为".NET平台标准"的重命名.留下了".NET平台"一词,我怀疑当所有版本的版本计数都未重置为"1"时,这两个名称中的任何一个都使用更旧的名称.

So that solves the NuGet part of the question and my theory at this point is that the ".NET Standard Library" is just a rename of what was previously called the ".NET Platform Standard". That leaves the term ".NET Platform", which I suspect is an even older name for either of these things back when the version count wasn't reset to "1" for everything.

也许知道这些事情的人可以确认或纠正这个问题.

Maybe someone with knowledge of these things can confirm or correct this.

推荐答案

您是对的,.NET平台标准的概念已被.NET标准替换(基本上是重命名)..NET Standard和.NET Standard Library本质上也指的是同一概念.

You're about right, the concept of .NET Platform Standard has been replaced (basically renamed) with .NET Standard. .NET Standard and .NET Standard Library are essentially referring to the same concept as well.

您在此处看到的NuGet昵称以及.NET Standard演进的其余部分.当前的绰号是:

The NuGet monikers you see here and there are just remains of the .NET Standard evolution. The current monikers are:

  • netstandard.x :是指.NET Standard的特定版本.
  • netcoreapp1.x :是指以.NET Core为目标的.NET Core应用程序..NET Core的特定版本
  • netstandard.x: refers to a specific version to the .NET Standard
  • netcoreapp1.x: refers to a .NET Core application targeting on a specific version of .NET Core

查看新的.NET Standard GitHub存储库,尤其是

Check out the new .NET Standard GitHub repository and especially the docs to find out more about the latest .NET Standard developments.

这篇关于.NETPlatform与.NETStandard的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆