我们在 Azure Artifacts 中为包使用私有(private)源,要连接到此源,我们使用 visualstudio.com
或 azure.com
URL。
格式1:
https://[组织名称].pkgs.visualstudio.com/_packaging/[提要名称]/nuget/v3/index.json
格式2:
https://pkgs.dev.azure.com/[组织名称]/_packaging/[源名称]/nuget/v3/index.json
连接到 Feed
按钮显示 Format1 URL,但在其他格式运行良好的某些 PC 上会失败。
这两种格式有什么区别?
最佳答案
What's the difference between these two formats ?
格式 1:https://[org name].pkgs.visualstudio.com/_packaging/[feed name]/nuget/v3/index.json
使用的是 Azure DevOps 旧域名称(visualstudio.com)。
格式 2:https://pkgs.dev.azure.com/[org name]/_packaging/[feed name]/nuget/v3/index.json
使用 Azure DevOps新域名(dev.azure.com)。
当您使用旧域 URL 导航到连接到 Feed
选项时,它将生成 Format1 URL。
更详细的信息,您可以引用这个文档:Switch existing organizations to use the new domain name URL .
这两个 URL 均有效。要解决连接问题,您需要检查服务器上的防火墙。
您需要将旧域名网址添加到白名单。您可以引用这个文档:Allowed IP addresses and domain URLs
关于azure - pkgs.visualstudio.com 和 pkgs.dev.azure.com 之间有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73485145/