Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error while trying to push nuget package from VSTS

I added dotnet task (.Net Core) to do a nuget push. In the Nuget server section it asked me to use create a new Nuget Connection. I went with the API Key option and game in connection name,Feed URL, and API Key.

when I run this step I get the following error

Error: DotNetCore currently does not support using an encrypted Api Key.

is this a limitation or am i doing something wrong?

Please note from my desktop I am about to create package and push the package using apikey.

like image 900
kumar Avatar asked Mar 20 '18 00:03

kumar


2 Answers

I faced this issue and found a alternative way for this.

Instead of using dotnet nuget push use nuget push.

Azure build pipeline

like image 84
Chathuranga Basnayake Avatar answered Nov 14 '22 20:11

Chathuranga Basnayake


Pushing package to NuGet server through Command Line task by calling dotnet nuget push command to deal with this issue.

like image 34
starian chen-MSFT Avatar answered Nov 14 '22 21:11

starian chen-MSFT