VSTS unable to load the service index for source 401

VSTS unable to load the service index for source 401

 

回答1

You can update the VSTS feed with credentail (PAT or alternate credential) in the specified nuget.config file.

Such as:

nuget sources update -Name "vstsfeed" -Source https://microsoft.pkgs.visualstudio.com/_packaging/CBT/nuget/v3/index.json -Username "Alternate username" -Password "alternate password" -configfile /path/to/nuget.config

Then you can commit the changes for the nuget.config file and push to VSTS repo. And build again to check if it works.

 

Why would you recommend to put a password into source control? Oct 15, 2018 at 13:39
 
The password will be encoded in nuget.config file, so it's not put a password into source control. Jul 16, 2019 at 2:06
 
 
作者:Chuck Lu    GitHub    
posted @   ChuckLu  阅读(27)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2021-10-27 Configure Git to use Plink
2021-10-27 How does changing your password every 90 days increase security?
2021-10-27 How to implement a safe password history
2021-10-27 How to calculate distance similarity measure of given 2 strings?
2017-10-27 Found conflicts between different versions of the same dependent assembly that could not be resolved
2016-10-27 Difference between Char.IsDigit() and Char.IsNumber() in C#
2014-10-27 9.7结构类型
点击右上角即可分享
微信分享提示