nuget.exe push won't use API Key

Posted 木龙

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nuget.exe push won't use API Key相关的知识,希望对你有一定的参考价值。

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

WARNING: No API Key was provided and no API Key could be found for ‘https://www.nuget.org/api/v2/package

and was asked to login using username and password.

So the issue for me was, when I ran: nuget SetApiKey abc...def, I noticed that in the config file ("%Appdata%\Roaming\Nuget\NuGet.Config") it added a key for https://www.nuget.org, when I changed to to the full path it worked fine -> https://www.nuget.org/api/v2/package

So the bug appears to be 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的主要内容,如果未能解决你的问题,请参考以下文章

Beijing's Best Events That Won't Leave You Hungover, Sep 12-17

15 Things in Shanghai Your Tour Guide Won't Show You

sum of rabbits who whelp and won't die

glm编译错误问题解决 formal parameter with __declspec(align('16')) won't be aligned(示

Raspberry Pi 3B won't turn on after being powered on All In One

These kinds of shoes ( ) well A.were not sold B.won't be sold C.are not sol