繁体   English   中英

在 Visual Studio 中使用 Artifactory nuget 提要 - 如何在 package 管理器中获取相关搜索结果?

[英]Using an Artifactory nuget feed in Visual Studio - how to get relevant search results in the package manager?

我在 Artifactory 中设置了一个虚拟存储库,以提供对 nuget.org 和内部 nuget 提要的访问。

但是,当我在 Visual Studio (2019 atm) 中使用虚拟存储库时,package 管理器会返回在大多数情况下不相关的搜索结果。 我需要的 package 在结果中的某个位置,但不在顶部。 即使 package 名称是唯一的,也是如此。

将 Artifactory 与虚拟存储库一起使用: 将 Artifactory 与虚拟存储库一起使用

直接使用 nuget.org : 直接使用 nuget.org

在虚拟存储库中有包含或排除模式的选项,但我不知道如何使用它在 package 管理器中创建体面的搜索结果。

这让我想知道我是否错过了一些东西。

Visual Studio 的 package 管理器 UI 在右侧的结果上方有一个下拉菜单,指向 select 要搜索的源。

如果“全部”是 select,则 NuGet 会以某种方式合并结果。 我认为它维护服务器顺序,但使用一些算法来决定合并多个结果集的顺序。

但是如果只选择了一个来源,那么 UI 会保持搜索结果的顺序。 因此,由搜索服务器以良好的顺序返回结果。 If you use Artifactory or Azure Artifacts to aggregate nuget.org and private packages into a single feed, it's up to that feed's search implementation to determine the results order, which might not be the same order as when searching nuget.org directly.

暂无
暂无

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

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