无法将 NuGet 源添加到 Azure Dev Ops 项目

发布于 2025-01-14 12:36:36 字数 504 浏览 3 评论 0原文

我的项目有另一个包源的 NuGet 源,我想将其作为上游源添加到 Azure Dev Ops 工件部分,从而加入标准 NuGet 源。然而,尽管文档说(https://learn.microsoft.com/en-us/azure/devops/artifacts/how-to/set-up-upstream-sources?view=azure-devops),唯一的自定义选项我看到的是“自定义 NPN 注册表”,并附有注释,说明 npm 是唯一支持自定义公共上游源的包类型。

无论如何,我添加了我的提要,但在 Visual Studio 的包管理器中找不到它,尽管我能够从标准 NuGet 提要添加一些内容。我是否缺少启用自定义 NuGet 源的设置,或者此处的文档是否不正确?

I have a NuGet feed for another source of packages for my project that I'd like to add to the Azure Dev Ops artifacts section as an upstream source, joining the standard NuGet feed. However, despite what the documentation says (https://learn.microsoft.com/en-us/azure/devops/artifacts/how-to/set-up-upstream-sources?view=azure-devops), the only custom option I see is for "custom NPN registry" with a note saying npm is the only package type that supports custom public upstream sources.

I added my feed anyway but it's not findable in Visual Studio's package manager, though I was able to add something from the standard NuGet feed. Is there a setting I'm missing to enable custom NuGet feeds to be added in, or are the docs incorrect here?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

肩上的翅膀 2025-01-21 12:36:36

我相信您误读了文档。

自定义公共上游源仅受 npm 注册表支持。

参考: https://learn.microsoft.com/en-us/azure/devops/artifacts/how-to/set-up-upstream-sources?view=azure-devops#enable-upstream-sources-in-an -existing-feed

如果您想对所有内容使用单个 feed,则必须实施一些 hacky 解决方法。

尽管不幸,解决方法是使用计划的管道将外部源与 Azure DevOps 源同步。

I believe you are misreading the documentation.

Custom public upstream sources are only supported with npm registries.

Ref: https://learn.microsoft.com/en-us/azure/devops/artifacts/how-to/set-up-upstream-sources?view=azure-devops#enable-upstream-sources-in-an-existing-feed

If you want to use a single feed for everything, you'll have to implement a bit of a hacky workaround.

The workaround, as unfortunate as it may be, would be to use a scheduled pipeline to synchronize the external feed with your Azure DevOps feed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文