Reputation: 1420
I am moving my existing project to a new machine. I am using a custom Azure Nuget feed with a url in the form:
https://pkgs.dev.azure.com/company/project/_packaging/project.Libs/nuget/v3/index.json
When I try to build, I get the error:
NU1301: Unable to load the service index for source https://pkgs.dev.azure.com/company/project/_packaging/project.Libs/nuget/v3/index.json Response status code does not indicate success: 401 (Unauthorized).
I also cannot browse the packages in the feed.
I am logged in in my browser and can see the content of the json file of the feed but of course not in a private session.
On my old machine I don't remember how the feed was added and I also haven't saved my username/password anywhere (e.g. in NuGet.config, which seems to be a suggested solution).
Does anyone know how to provide the credential to VS so that it can access the feed?
Upvotes: 3
Views: 4078
Reputation: 1420
I was able to fix this by:
Now everything works fine.
Upvotes: 6