Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Getting 'forbidden' pushing a nuget package in github

$
0
0

Much like this thread: Publishing and Consuming GitHub Package Repository with NuGet: Unable to load the service index error

I have the csproj correct, the nuget.config correct (same as in that thread, but for my username), and following the answer where the token has all the rights, and I do the dotnet nuget add source, and the dotnet nuget push (same formatting/syntax).

However, I always always get this:

warn: <username> does not have the correct permissions to execute 'CreatePackageVersion'  Forbidden https://nuget.pkg.github.com/(username)/ 687mserror: Response status code does not indicate success: 403 (Forbidden).

I've tried with/without the -k (git token) in the dotnet nuget push, no effect. The --interactive that it recommends, doesn't change anything.

I'm running this in a standard command line in the \bin\Release\netstandard2.0\publish directory, after having published to that folder.

Did already restart computer even after adding appropriate csproj and nuget.config data. Also tried doing @username and username (my username with and without an at sign, since all docs have no actual username examples, many blackened out).

(I do want it to be public readable, already added source .../(username)/index.json).


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>