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
 
 
posted @ 2022-10-27 13:55  ChuckLu  阅读(32)  评论(0)    收藏  举报