无法将 NuGet 源添加到 Azure Dev Ops 项目
我的项目有另一个包源的 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信您误读了文档。
参考: 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.
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.