I have created a visual studio class library. I want to send this to Nuget as a package. I used Visual studio package manager console. The commans are like following:
this returned an error: nuget : Failed to process request. 'The specified API key is invalid or does not have permission to access the specified package.'. At line:1 char:1 + nuget push hellonuget.1.0.0.nupkg + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (Failed to proce...ied package.'. :String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError
The remote server returned an error: (403) Forbidden
I tried second way. I tried these commands from windows CMD window. I created nuget package of HelloNuget.dll.
D:\App\HelloNuget> nuget push hellonuget.1.0.0.nupkg -ApiKey *
Succesfully published the pack.
What is the problem about visual studio package manager?
I had the exact same problem and it was because i was using a name for the package that exists already . Once i changed the name of of the package to something unique it published perfectly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With