title: NuGet does not honour packages.config
body: <p>I am trying to generate NuGet packages for a pair of internal C# projects (eventually more, but starting with these two) that are used in other solutions/projects/etc. Both of these internal C# projects have references to other NuGet packages (Enterprise Library Logging in particular). I am using the feature of Nuget that allows it to build the packages from the CSPROJ file to simplify my life a little bit. The problem is that the Nuget.Exe tool does not identify the packages that the project references as dependencies. To give a full layout of the solution:</p>
  
  <pre><code>Solution:
     Project 1
         Refs to some NuGet packages off the global repository (Enterprise Library, etc etc).
         (has a packages.config file that explicity lists them all)
     Project 2
         Refs to some NuGet packages off the global repository (Enterprise Library, etc. etc).
         Project ref to Project 1
         (has a packages.config file that explicity lists them all)
  </code></pre>
  
  <p>The command line I use is:</p>
  
  <pre><code>   nuget pack Project2.csproj -IncludeReferencedProjects -verbosity detailed
  </code></pre>
  
  <p>The relevent parts of the output of the command line are:</p>
  
  <pre><code>Found packages.config. Using packages listed as dependencies
  
  Id: Project2
  Version: 1.0.0.0
  Authors: abc
  Description: abc
  Dependencies: Project1 (= 1.0.0.0)
  
  Added file 'lib\net35\project2.dll'.
  </code></pre>
  
  <p>I would have expected "Dependencies: Project1, Enterprise Libray Logging, etc etc etc"</p>
  
  <p>*<em>NOTE</em>: that I had to add a nuspec file to both Project1 and Project2 to get the interproject dependency part working correctly. The nuspec file is essentially blank though, save for the placeholder values:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;package &gt;
    &lt;metadata&gt;
      &lt;id&gt;$id$&lt;/id&gt;
      &lt;version&gt;$version$&lt;/version&gt;
      &lt;title&gt;$title$&lt;/title&gt;
      &lt;authors&gt;abc&lt;/authors&gt;
      &lt;owners&gt;abc&lt;/owners&gt;
      &lt;requireLicenseAcceptance&gt;false&lt;/requireLicenseAcceptance&gt;
      &lt;description&gt;defr&lt;/description&gt;
      &lt;copyright&gt;Copyright 2013&lt;/copyright&gt;
    &lt;/metadata&gt;
  &lt;/package&gt;
  </code></pre>
  
  <p>The closest thing I found on the NuGet issue tracker is <a href="http://nuget.codeplex.com/workitem/3097" rel="nofollow">http://nuget.codeplex.com/workitem/3097</a>, but that is slightly different and neither of the solutions put forward in there seemed to work.</p>
  
  <p>Anybody have a similar situation working correctly?</p>
  
  <p>I am using NuGet 2.7 with Visual Studio 2012.</p>