title: NuGet vs Direct Reference of Class w/ EF6 Entities
body: <p>I have a class library with numerous EF6 entities. I generated a NuGet from this library. Whenever I reference the library directly only the DLL is placed in the bin, however when I install the library via NuGet it copies over the entities *Content.tt and *.tt files into a folder in the project.</p>
  <p>I have a couple of questions around this difference:</p>
  <ol>
  <li><p>Why does the NuGet require these files present when a reference to the project does not?</p>
  </li>
  <li><p>Is there a need for these entity files or am I able to force the NuGet to not clone these files over when installed?</p>
  </li>
  </ol>
  <p>My .nuspec file is standard like follows:</p>
  <pre><code>    &lt;?xml version=&quot;1.0&quot;?&gt;
      &lt;package &gt;
        &lt;metadata&gt;
          &lt;id&gt;MYID&lt;/id&gt;
          &lt;version&gt;12.0.2&lt;/version&gt;
          &lt;title&gt;MYTITLE&lt;/title&gt;
          &lt;authors&gt;MYNAME&lt;/authors&gt;
          &lt;owners&gt;&lt;/owners&gt;
          &lt;requireLicenseAcceptance&gt;false&lt;/requireLicenseAcceptance&gt;
          &lt;description&lt;/description&gt;
          &lt;releaseNotes&gt;&lt;/releaseNotes&gt;
          &lt;copyright&gt;Copyright 2017&lt;/copyright&gt;
          &lt;tags&gt;&lt;/tags&gt;
        &lt;/metadata&gt;
      &lt;/package&gt;
  </code></pre>
  <p>The commands I am using to generate the package are:</p>
  <blockquote>
  <p>c:\nuget.exe pack MYID.csproj -IncludeReferencedProjects -Prop
  Platform=AnyCPU</p>
  <p>c:\nuget.exe add MYID.1.0.0.nupkg -Source M:\Dev\NuGetPackages</p>
  </blockquote>