title: visual studio code and private nuget
body: <p>I have a library that comes from a private nuget feed.  I have the url and credentials for that but dont know how to connect to the feed properly with visual studio code.  I am using dotnetcore framework.</p>
  
  <p>I created a Nuget.Config file in the root of my console application with the feed url and username and password but this didn't seem to pick up the packages from that feed when imputting them in the project.json.  Even doing a restore would produce errors.</p>
  
  <p>Does anyone have an example of how they would set up a project to do this?  I know it is not normal to have the Nuget.Config file in the project but this is a test project so would not live there once the project got past proof of concept.</p>
  
  <p>My nuget.config looked like this</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
      &lt;packageSources&gt;
          &lt;add key="CustomRepo" value="https://nuget.feed/nuget/" /&gt;
      &lt;/packageSources&gt;
  
      &lt;!-- Used to store credentials --&gt;
      &lt;packageSourceCredentials&gt;
          &lt;CustomRepo&gt;
              &lt;add key="Username" value="something" /&gt;
              &lt;add key="ClearTextPassword" value="thepassword" /&gt;
          &lt;/CustomRepo&gt;
      &lt;/packageSourceCredentials&gt;
  
        &lt;!-- Used to disable package sources  --&gt;
      &lt;disabledPackageSources /&gt;
  &lt;/configuration&gt;
  </code></pre>