title: How do I create a nupkg that just contains files?
body: <p>I'm trying to create a NuGet package that just deploys some scripts used by the build system and general developer utilities.</p>
  
  <p>Here's the <code>.nuspec</code> file contents:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;package&gt;
    &lt;metadata&gt;
      &lt;id&gt;Some.Scripts&lt;/id&gt;
      &lt;version&gt;1.0.0.0&lt;/version&gt;
      &lt;title&gt;Some Script Library&lt;/title&gt;
      &lt;authors&gt;Some Developers&lt;/authors&gt;
      &lt;owners&gt;Some Developers&lt;/owners&gt;
      &lt;requireLicenseAcceptance&gt;false&lt;/requireLicenseAcceptance&gt;
      &lt;description&gt;Contains scripts for general use in coding or build and deploy automation.&lt;/description&gt;
      &lt;releaseNotes&gt;Initial release.&lt;/releaseNotes&gt;
      &lt;copyright&gt;Copyright 2015&lt;/copyright&gt;
      &lt;tags&gt;PowerShell scripts automation TeamCity build tools&lt;/tags&gt;    
    &lt;/metadata&gt;
    &lt;files&gt;
      &lt;file src=".scripts\**\*" target=".scripts\" /&gt;
    &lt;/files&gt;  
  &lt;/package&gt;
  </code></pre>
  
  <p>The folder structure on disk is:</p>
  
  <pre><code>\GitRepos\Some-Scripts\
  \GitRepos\Some-Scripts\Some.Scripts.nuspec
  \GitRepos\Some-Scripts\.git
  \GitRepos\Some-Scripts\.scripts\
  \GitRepos\Some-Scripts\.scripts\someScript.ps1
  </code></pre>
  
  <p>NuGet.exe 3.3.0.212 produces this error message:</p>
  
  <blockquote>
    <p>Cannot create a package that has no dependencies nor content</p>
  </blockquote>
  
  <p>Is what I'm doing even possible?</p>
  
  <p><strong>Update</strong></p>
  
  <p>I originally posted an answer:</p>
  
  <blockquote>
    <p>Okay, I think I have found the problem. It doesn't like the leading period in the source folder .scripts though its cool with it in the target folder.</p>
  </blockquote>
  
  <p>Though actually that solved only half the problem. Though it makes a package and the files are in it (viewed in WinZip) the installation fails with:</p>
  
  <blockquote>
    <p>Could not install package 'Some.Scripts 1.0.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6.1', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.</p>
  </blockquote>
  
  <p><strong>Update 2</strong></p>
  
  <p>Found this bug report on the NuGet GitHub but its been closed after some work in an area that, to me, seems unrelated.</p>
  
  <p><a href="https://github.com/NuGet/Home/issues/1021" rel="nofollow">https://github.com/NuGet/Home/issues/1021</a></p>