[英]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: 到目前为止我尝试过的事情:
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.