So for the first time, I am creating nuget package for a .Net Framework Library and I want to upload it to the nuget server. I have followed this tutorial Nuget Package Creation and I have got my account created in Nuget and also I have created the API key and even the nuget package is ready in the solution folder. But when I run below command to push the package I get the API Key error.
Error: THe specifies API key is invalid or does not have the permission. But I just now created and account and the API key. Please guide me.
When I try to upload directly to Nuget Website I get below error:
The following message might be displayed when a user tries to upload a package with the same id of another package (more info on Unable to upload package):
The package ID 'xxxxxxx' is not available
So, instead of using a generic default namespace and assembly name:
Consider using your own namespace, in order to avoid package ID conflicts. Package will be generated with the same name as the assembly name. Example:
If you're using a .NET Standard Class Library you can change the package ID directly in the project properties > Package section:
Please note that by default the package ID is the same as the Assembly Name.