title: Specifying files to add to a nuget package in .csproj file
body: <p>I am creating a nuget package from some code, but also need to deploy some tools with the package.</p>
  <p>In a .nuspec file, I can do this with the <code>&lt;files&gt;</code> element, and this all works well.</p>
  <p>However when using a .nuspec file, the <code>packageReferences</code> from the csproj file aren't included, and I am seeing some problems when including them manually (with the <code>&lt;dependencies&gt;</code> element).</p>
  <p>The package created also always seems to restore as a .net framework package, even though it is targetting .net, as in <a href="https://stackoverflow.com/questions/54817553/was-restored-using-netframework-version-v4-6-1-instead-of-the-project-target">this question</a>.</p>
  <p>I am hoping that all these problems would go away if I moved to using the .csproj format for specifying the nuget package details, but having <a href="https://docs.microsoft.com/en-us/dotnet/core/tools/csproj#nuget-metadata-properties" rel="nofollow noreferrer">read the docs</a> I can't find out how to do it.</p>
  <p>Does anyone know how it is done?</p>
  <p>If not, can anyone shed any light on created a .net framework / .net core nuget package from a .nuspec file, that restores to the correct target version and respects package dependencies?</p>