【问题标题】:Access Nuget Packages hosted in private Nuget Server in Azure Pipelines访问 Azure Pipelines 中私有 Nuget 服务器中托管的 Nuget 包
【发布时间】:2021-06-21 21:08:17
【问题描述】:

我们很少有 nuget 包被推送到私有 nuget 包,尝试设置 Azure Pipelines 但是在构建过程中它显示错误 NU1101:运行步骤“nuget store”时无法找到包

注意在本地 Visual Studio 中,当我们在 VPN 中时可以访问它

【问题讨论】:

    标签: azure build msbuild azure-pipelines msbuildcommunitytasks


    【解决方案1】:

    如果您使用的是私有 nuget 服务器。您需要在可以访问私有 nuget 服务器的本地计算机上使用 create self-hosted agent。并选择您的 private agent pool 在自托管代理上运行您的 Azure 管道。

    对于云托管代理,您的私有 nuget 服务器不可用。如果您在云托管代理上运行管道,则管道中的 nuget 还原步骤将无法找到您的包。

    如果您在代理后面工作。请查看以下文档以配置自托管代理的代理设置。

    Run a self-hosted agent behind a web proxy

    【讨论】:

      猜你喜欢
      • 2016-08-10
      • 2018-07-04
      • 2022-07-21
      • 1970-01-01
      • 1970-01-01
      • 2017-07-18
      • 2020-11-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多