简体   繁体   English

前提下,TFS无法从私有提要中还原nuget包

[英]TFS on premise can't restore nuget packages from private feed

We have TFS Version 16.122.27409.2 and a build server hosted on premise. 我们拥有TFS版本16.122.27409.2和内部托管的构建服务器。 We are experiencing an issue with our automated build system when the build tries to restore packages from the TFS feed: 当构建尝试从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).

Things I have tried so far: 到目前为止我尝试过的事情:

  • Turn off automatic proxy detection on build server 关闭构建服务器上的自动代理检测
  • Disable anti-virus/firewalls on build server 在构建服务器上禁用防病毒/防火墙
  • Add windows account of the build server as the owner on TFS Nuget Feed permissions 将构建服务器的Windows帐户添加为TFS Nuget Feed权限的所有者
  • Update VS 2017 to the latest version 将VS 2017更新到最新版本
  • Try using a nuget.config file in the build definition, instead of picking the feed from the drop-down list 尝试在构建定义中使用nuget.config文件,而不是从下拉列表中选择提要

Build tasks: 构建任务: 在此处输入图片说明

It turns out that TFS expects IIS basic auth setting to be Off, which was not the case on our environment. 事实证明,TFS希望IIS基本身份验证设置为“关”,而在我们的环境中情况并非如此。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM