我们拥有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).
到目前为止我尝试过的事情:
答案 0 :(得分:0)
事实证明,TFS希望IIS基本身份验证设置为“关”,而在我们的环境中不是这种情况。
https://developercommunity.visualstudio.com/comments/142485/view.html