I try to learn Github action and packages. So, I create a sample nuget package and successfully created. However I could not use it.
I follow this step;
- Options > Nuget Package Manager > Package Sources
Click add button write organization name and add package source address like that:
After that Visual Studio doesn't ask me any credential for this address.
If there is no credential, I will expect to an error. And I got it.
[github] Failed to retrieve metadata from source 'https://nuget.pkg.github.com/[OrganizationName]/query?q=&skip=0&take=26&prerelease=false&semVerLevel=2.0.0'. Response status code does not indicate success: 401 (Unauthorized).
Then, I decide to some credential like explained in github documentation.
However still I get Unauthorized error. And also when I click the error link gettin a message like that:
{"errors":[{"code":"Your token has not been granted the required scopes to execute this query. The 'id' field requires one of the following scopes","message":" ['read:packages'], but your token has only been granted the: [''] scopes. Please modify your token's scopes at: https://github.com/settings/tokens."}]}
but I already have a token with read/write package credential.
- All that fails and I try to another way. I add credential information to Windows Credential Manager. Eveything still same.
So, how I add and use my private nuget packages?