title: How does a nuget package specify copylocal
body: <p>I have issues that I am dealing with where certain nuget installed package added via VS2012 have the copylocal value set to true where as others don't have any value set. </p>
  
  <p>How does nuget know when to add copylocal and not to?</p>
  
  <p>Is there some setting that I am missing in the nupkg file that I am missing?</p>
  
  <p>I had a look at the source code for nuget (briefly) and it the copylocal value exists then it should be set to true.</p>
  
  <p>e.g. </p>
  
  <p><code>Install-Package System.Web.Mvc</code></p>
  
  <p>resolves to</p>
  
  <pre><code>    &lt;Reference Include="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"&gt;
    &lt;Private&gt;True&lt;/Private&gt;
    &lt;HintPath&gt;..\packages\Microsoft.AspNet.Mvc.4.0.30506.0\lib\net40\System.Web.Mvc.dll&lt;/HintPath&gt;
  &lt;/Reference&gt;
  </code></pre>
  
  <p><strong>However</strong></p>
  
  <pre><code>Install-Package Newtonsoft.Json
  </code></pre>
  
  <p>Resolves to</p>
  
  <pre><code>    &lt;Reference Include="Newtonsoft.Json"&gt;
    &lt;HintPath&gt;..\packages\Newtonsoft.Json.5.0.6\lib\net45\Newtonsoft.Json.dll&lt;/HintPath&gt;
  &lt;/Reference&gt;
  </code></pre>