I have a class library with numerous EF6 objects. I created NuGet from this library. Whenever I reference the library directly, only the DLL is placed in the trash; however, when I install the library through NuGet, it copies the * Content.tt and * .tt entity files to the folder in the project.
I have a couple of questions around this difference:
Why does NuGet require these files if there is no link to the project?
Is there a need for these entity files, or can I get NuGet not to clone these files during installation?
My .nuspec file is standard as follows:
<?xml version="1.0"?> <package > <metadata> <id>MYID</id> <version>12.0.2</version> <title>MYTITLE</title> <authors>MYNAME</authors> <owners></owners> <requireLicenseAcceptance>false</requireLicenseAcceptance> <description</description> <releaseNotes></releaseNotes> <copyright>Copyright 2017</copyright> <tags></tags> </metadata> </package>
The commands I use to create the package are as follows:
c: \ nuget.exe pack MYID.csproj -IncludeReferencedProjects -Prop Platform = AnyCPU
c: \ nuget.exe add MYID.1.0.0.nupkg -Source M: \ Dev \ NuGetPackages
c # nuget
Nugs
source share