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

Wrong nuget.config generated for private feeds #8903

Closed
mbp opened this issue Nov 23, 2018 · 1 comment
Closed

Wrong nuget.config generated for private feeds #8903

mbp opened this issue Nov 23, 2018 · 1 comment

Comments

@mbp
Copy link

mbp commented Nov 23, 2018

Using on-premise Windows or Linux agent with latest .NET Core SDK 2.1.500 installed, it is not possible to restore packages with "dotnet restore" using the DotNetCoreCli task. You get 401 Unauthorized

It seems the temporary nuget.config file generated is wrong.

<configuration>
  <packageSources>
    <add key="NuGetOrg" value="https://api.nuget.org/v3/index.json"/>
    <add key="24175d4e-5754-49d7-8f7e-11a212b7dae1" value="https://MYORG.pkgs.visualstudio.com/_packaging/24175d4e-5754-49d7-8f7e-11a212b7dae1/nuget/v3/index.json"/>
  </packageSources>
  <packageSourceCredentials>
    <_x0032_4175d4e-5754-49d7-8f7e-11a212b7dae1>
      <add key="Username" value="VssSessionToken"/>
      <add key="ClearTextPassword" value="SECRET"/>
    </_x0032_4175d4e-5754-49d7-8f7e-11a212b7dae1>
  </packageSourceCredentials>
</configuration>

The <_x0032_4175d4e-5754-49d7-8f7e-11a212b7dae1> is wrong, it should be <24175d4e-5754-49d7-8f7e-11a212b7dae1>

Related issue/comment: NuGet/Home#7516 (comment)

@mbp mbp changed the title Wrong nuget.conig generated Wrong nuget.config generated Nov 23, 2018
@mbp mbp changed the title Wrong nuget.config generated Wrong nuget.config generated for private feeds Nov 23, 2018
@nkolev92
Copy link
Member

nkolev92 commented Nov 25, 2018

My comment wasn't clear enough.
The bug is on NuGet side.
See tracking here:
NuGet/Home#7517

@mbp mbp closed this as completed Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants