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.
nuget.config
file, so it's not put a password into source control.