title: How do I register a new NuGet package source with dotnet CLI on Ubuntu 14.04?
body: <p>I am running .NET Core 1.1.0 on Ubuntu 14.04, with the goal of hosting my Web APIs in Docker on Ubuntu.  I want to build my packages on Ubuntu, but some of the NuGet references are hosted on an internal NuGet repository (Artifactory).  This works fine in VS2015 on Windows after I add the package source, but when I run:</p>
  
  <pre><code>dotnet restore
  </code></pre>
  
  <p>on Ubuntu, the packages hosted on the public NuGet repo download fine, but those on Artifactory fail:</p>
  
  <pre><code>error: Unable to resolve 'Mercury.BaseModel (&gt;= 1.1.0)' for '.NETCoreApp,Version=v1.1'.
  </code></pre>
  
  <p>I found a NuGet config file at <code>\home\&lt;user&gt;\.nuget\NuGet\NuGet.Config</code> and added the Artifactory repository as follows:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;packageSources&gt;
      &lt;add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /&gt;
      &lt;add key="Artifactory-DEV" value="https://theluggage-agct.gray.net/artifactory/api/nuget/nuget-institutional-development-local" protocolVersion="3"/&gt;
    &lt;/packageSources&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>but I am still getting the same error.</p>
  
  <p>NuGet itself does not work after installing the .NET Core SDK, I am using <code>dotnet restore</code> as mentioned - is there similar config I must edit for the dotnet CLI (which must be using NuGet?) or is there something else I need to do?</p>
  
  <p>Thanks!</p>