title: How to use github nuget packages on Visual Studio 2019
body: <p>I try to learn Github action and packages. So, I create a sample nuget package and successfully created. However I could not use it.</p>
  
  <p>I follow this step;</p>
  
  <ol>
  <li>Options > Nuget Package Manager > Package Sources</li>
  <li><p>Click add button write organization name and add package source address like that:
  <a href="https://i.stack.imgur.com/NeeHV.png" rel="noreferrer"><img src="https://i.stack.imgur.com/NeeHV.png" alt="enter image description here"></a></p></li>
  <li><p>After that Visual Studio doesn't ask me any credential for this address.</p></li>
  <li><p>If there is no credential, I will expect to an error. And I got it.</p>
  
  <p>[github] Failed to retrieve metadata from source '<a href="https://nuget.pkg.github.com/[OrganizationName]/query?q=&amp;skip=0&amp;take=26&amp;prerelease=false&amp;semVerLevel=2.0.0" rel="noreferrer">https://nuget.pkg.github.com/[OrganizationName]/query?q=&amp;skip=0&amp;take=26&amp;prerelease=false&amp;semVerLevel=2.0.0</a>'.
    Response status code does not indicate success: 401 (Unauthorized).</p></li>
  <li><p>Then, I decide to some credential like explained in <a href="https://help.github.com/en/packages/using-github-packages-with-your-projects-ecosystem/configuring-dotnet-cli-for-use-with-github-packages#authenticating-to-github-packages" rel="noreferrer">github documentation</a>.</p></li>
  <li><p>My nuget.config file:
  <a href="https://i.stack.imgur.com/Eqwxr.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Eqwxr.png" alt="enter image description here"></a></p></li>
  <li><p>However still I get Unauthorized error. And also when I click the error link gettin a message like that:</p></li>
  </ol>
  
  <blockquote>
    <p>{"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: <a href="https://github.com/settings/tokens" rel="noreferrer">https://github.com/settings/tokens</a>."}]}</p>
  </blockquote>
  
  <p>but I already have a token with read/write package credential.
  <a href="https://i.stack.imgur.com/I74Fo.png" rel="noreferrer"><img src="https://i.stack.imgur.com/I74Fo.png" alt="enter image description here"></a></p>
  
  <ol start="8">
  <li>All that fails and I try to another way. I add credential information to Windows Credential Manager. Eveything still same.
  <a href="https://i.stack.imgur.com/aokEu.png" rel="noreferrer"><img src="https://i.stack.imgur.com/aokEu.png" alt=""></a></li>
  </ol>
  
  <p>So, how I add and use my private nuget packages?</p>