I am trying to push a Nuget package to Azure DevOps from a MAC.
I created an Azure DevOps artefacts feed and tried to push a package using:
dotnet nuget push
--source "https://pkgs.dev.azure.com/MyProject/_packaging/MyFeed/nuget/v2"
--api-key "MyToken"
"MyPackage.nupkg"
I generated the Token as follows:
https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=azure-devops
I gave full access to the user when generated the token.
I keep having the error:
error: Unable to load the service index for source https://pkgs.dev.azure.com/mdmoura/_packaging/Moleky/nuget/v3/index.json.
error: Response status code does not indicate success: 401 (Unauthorized).
I tried different options but I always get this error ...
What I might be missing?