title: NuGet nuspec dependency - how to include a private NuGet gallery
body: <p><strong>Fixed - see Sara Lui's link to document in comments.</strong></p>
  
  <p>I have created several NuGet packages which are available on our private Corporate NuGet gallery.</p>
  
  <p>Several of these packages are dependent upon one common package.</p>
  
  <p>However, when I add this to my Nuspec file:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;package &gt;
    &lt;metadata&gt;
      ...
      &lt;dependencies&gt;
        &lt;dependency id="MyCommonPackage" version="1.0"&gt;
        &lt;/dependency&gt;
      &lt;/dependencies&gt;
    &lt;/metadata&gt;
  &lt;/package&gt;
  </code></pre>
  
  <p>Then it fails to install because it can't find "MyCommonPackage" - it's not looking for it in our corporate gallery:</p>
  
  <blockquote>
    <p>NotFound
    <a href="https://api.nuget.org/v3-flatcontainer/MyCommonPackage/index.json" rel="nofollow noreferrer">https://api.nuget.org/v3-flatcontainer/MyCommonPackage/index.json</a></p>
    
    <p>NotFound
    <a href="https://dotnetmyget.blob.core.windows.net/artifacts/roslyn/nuget/v3/flatcontainer/MyCommonPackage/index.json" rel="nofollow noreferrer">https://dotnetmyget.blob.core.windows.net/artifacts/roslyn/nuget/v3/flatcontainer/MyCommonPackage/index.json</a></p>
  </blockquote>
  
  <p>Visual Studio has this gallery referenced, but I suspect I need to reference it in the nuspec file (just not seeing how to do this).</p>