Reputation:
I am verified in DevOps using an ssh key (at least for git)
So I pulled a solution from [email protected]:v3/mycompany/thing/thing
, and tried to build it using dotnet build
, but get the error
/usr/local/share/dotnet/sdk/3.1.402/NuGet.targets(128,5): error : Unable to load the service index for source https://mycompany.pkgs.visualstudio.com/_packaging/SomeProject/nuget/v3/index.json. /usr/local/share/dotnet/sdk/3.1.402/NuGet.targets(128,5): error : Response status code does not indicate success: 401 (Unauthorized).
How can I get around this (I assume by authenticating with the sources server) and build the project?
Upvotes: 0
Views: 220
Reputation: 40849
Please install Azure Artifacts Credential Provider and once you do it run dotnet restore --interactive
and then you will be prompted to login to a page like below:
Upvotes: 1