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

VS UI nuget.config management #7973

Open
2 of 14 tasks
karann-msft opened this issue Apr 8, 2019 · 1 comment
Open
2 of 14 tasks

VS UI nuget.config management #7973

karann-msft opened this issue Apr 8, 2019 · 1 comment

Comments

@karann-msft
Copy link
Contributor

karann-msft commented Apr 8, 2019

@kabua
Copy link

kabua commented Aug 31, 2022

We have come across the following related issue. We are using a protected NuGet feed, thus my credentials are required, and I need to build from both VS 2019 and from the command line.

When trying to access this feed from VS, VS showed me a credentials dialog. After entering my creds, I was able to access the feed. But when I tried from the cmd NuGet couldn't connect due to authorization errors.

Therefore, I ran this cmd (names changed to protect the guilty):

NuGet sources update -Name Feed1 -Source https://nuget.example.com/nuget/feed1/v3/index.json -UserName me -Password my_pwd

In my NuGet.config file I found this new section:

<packageSourceCredentials>
    <Fee1>
      <add key="Username" value="me" />
      <add key="Password" value="aoru63y63nc==" />
    </Fee1>
  </packageSourceCredentials>

After that, I was able to build using the cmd.

However, after making changes using VS options, I noticed that cmd wouldn't work anymore. So I looked at my NuGet.config file and discovered that the <packageSourceCredentials> section was removed entirely!

Expected behavior

  1. either VS honors the security settings within NuGet.config or
  2. NuGet and VS use the same credential store.

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

6 participants