Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet restore interactive fails with private VSTS feed #7812

Closed
ViktorHofer opened this issue Feb 18, 2019 · 5 comments
Closed

dotnet restore interactive fails with private VSTS feed #7812

ViktorHofer opened this issue Feb 18, 2019 · 5 comments

Comments

@ViktorHofer
Copy link

ViktorHofer commented Feb 18, 2019

Details about Problem

NuGet product used: dotnet.exe
dotnet.exe --version: 2.2.104
OS version: 10.0.18334

dotnet restore --interactive doesn't prompt for authentication and just returns 401:

 "C:\git\corefx\eng\common\internal\Tools.csproj" (Restore target) (1) ->
       (Restore target) ->
         C:\git\corefx\.dotnet\sdk\2.2.104\NuGet.targets(114,5): error : Failed to retrieve information about 'TestILC.x86ret' from remote source 'https://devdiv.pkgs.visualstudio.com/_packaging/dotnet-core-internal-tool/FindPackagesById()?id='TestILC.x86ret'&semVerLevel=2.0.0'. [C:\git\corefx\eng\common\internal\Tools.csproj]
       C:\git\corefx\.dotnet\sdk\2.2.104\NuGet.targets(114,5): error :   Response status code does not indicate success: 401 (Unauthorized). [C:\git\corefx\eng\common\internal\Tools.csproj]

With nuget.exe 4.9.2.5706 the authentication dialog is prompted as expected:

nuget.exe restore "eng\common\internal\Tools.csproj" -Source https://devdiv.pkgs.visualstudio.com/_packaging/dotnet-core-internal-tool

Please provide credentials for: https://devdiv.pkgs.visualstudio.com/_packaging/dotnet-core-internal-tool
UserName:

Detailed repro steps so we can see the same problem

  1. git clone https://github.com/dotnet/corefx.git && cd corefx

  2. .\build -restore && ".dotnet\dotnet.exe" restore "eng\common\internal\Tools.csproj" --interactive --source https://devdiv.pkgs.visualstudio.com/_packaging/dotnet-core-internal-tool

@ViktorHofer
Copy link
Author

cc @livarcocc

@ericstj
Copy link

ericstj commented Feb 28, 2019

@rrelyea can you help route this one? It's preventing devs from using using our azure dev ops internal feeds.

@nkolev92
Copy link
Member

nkolev92 commented Apr 3, 2019

You need to install the credential provider from https://github.com/Microsoft/artifacts-credprovider.

The prompting has been ruled out as something we did not want to add to dotnet.exe

@ViktorHofer
Copy link
Author

Is that behavior documented anywhere? Why was the prompting ruled out? Trying to understand the reasoning.

@ViktorHofer
Copy link
Author

Thanks it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants