简体   繁体   English

MyGet提要中的NuGet ID验证标记

[英]NuGet ID Verified Mark in MyGet feeds

Since NuGet implemented NuGet Package ID Prefix reservation , latest versions of Visual Studio show a new icon for verified packages. 由于NuGet实现了NuGet程序包ID前缀保留 ,因此Visual Studio的最新版本为已验证程序包显示一个新图标。

Today I've noticed all packages in my custom MyGet feed got the same icon, however, I did not make any additional change. 今天,我注意到自定义MyGet提要中的所有软件包都带有相同的图标,但是,我没有进行任何其他更改。

Is this the expected behavior in MyGet? 这是MyGet中的预期行为吗?

Since the NuGet protocol does not really describe when a package should be "verified" when used outside of Nuget.org, we at MyGet now use the following convention: 由于NuGet协议并未真正描述在 Nuget.org之外使用软件包时应何时“验证”软件包,因此MyGet现在使用以下约定:

  • If a package originates from a MyGet feed, it is shown as "verified" (eg it comes from your feed) 如果程序包来自MyGet提要,则显示为“已验证”(例如,它来自您的提要)
  • If a package is proxied from, eg NuGet.org, the package is never shown a verified as MyGet reaches out upstream to fetch the package and its not part of your feed yet. 如果从例如NuGet.org代理了某个软件包,则MyMy会向上游伸出以获取该软件包,而该软件包尚未包含在您的供稿中,因此该软件包将永远不会显示经过验证。 Additionally, since the V2 protocol does not expose the verified boolean, we can never show the verified label for upstream package sources. 此外,由于V2协议未公开经过验证的布尔值,因此我们永远无法为上游包源显示经过验证的标签。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM