TFS内部部署无法从私有源恢复nuget包

问题描述 投票:0回答:1

我们有TFS版本16.122.27409.2和内部托管的构建服务器。当构建尝试从TFS源恢复包时,我们遇到了自动构建系统的问题:

Unable to load the service index for source http://ngt-tfs:8080/tfs/NGT-Collection-01/_packaging/ad100c06-9a78-4ff2-b37a-23518a33370b/nuget/v3/index.json.

Response status code does not indicate success: 401 (Unauthorized).

NuGet.Protocol.Core.Types.FatalProtocolException: Unable to load the service index for source http://ngt-tfs:8080/tfs/NGT-Collection-01/_packaging/ad100c06-9a78-4ff2-b37a-23518a33370b/nuget/v3/index.json. ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 (Unauthorized).

到目前为止我尝试过的事情:

  • 关闭构建服务器上的自动代理检测
  • 在构建服务器上禁用防病毒/防火墙
  • 在TFS Nuget Feed权限上添加构建服务器的Windows帐户作为所有者
  • 将VS 2017更新到最新版本
  • 尝试在构建定义中使用nuget.config文件,而不是从下拉列表中选择源

建立任务:enter image description here

visual-studio tfs nuget tfsbuild nuget-package-restore
1个回答
0
投票

事实证明,TFS希望IIS基本身份验证设置为关闭,而我们的环境并非如此。

https://developercommunity.visualstudio.com/comments/142485/view.html

© www.soinside.com 2019 - 2024. All rights reserved.