Nuget.exe push won ' t use API Key

Source: Internet
Author: User

I had the same issue today on v3.4.3.855.
I set the API key using the required command, then if I ran the push I got this warning:

Warning:no API Key was provided and No API key could is found for ' https://www.nuget.org/api/v2/package '

and is asked to login using username and password.

So the issue for me is, when I ran:nuget Setapikey abc...def, I noticed this in the config file ("%appdata%\roaming\nuge T\nuget.config ") It added a key for https://www.nuget.org while I changed to the full path it worked fine, https:/ /www.nuget.org/api/v2/package

So the bug appears to being in the Setapikey command, not setting the correct key (for the push case anyway)

Nuget.exe Setapikey [key]-source Https://www.nuget.org/api/v2/package

Nuget.exe push won ' t use API Key

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.