title: Setting file properties with NuGet using .targets file
body: <p>I am building a project to be installed as a NuGet package and I want to set the properties of a SpecFlow feature file (because it is latest SpecFlow and should not produce code-behind files for the features.)</p>
  
  <p>To achieve the effect of selecting a file, opening it's Properties pane and setting a couple of values, I have set my project structure like this:</p>
  
  <pre><code>\MyProject
    \build
      MyProject.targets
      \Framework &lt;the folder containing the file I want to affect&gt;
        FrameworkTests.feature &lt;the file I want to affect&gt;
    \Framework
      FrameworkTests.feature &lt;the original location of the file I want to affect&gt;
  </code></pre>
  
  <p>My .nuspec like this:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;package &gt;
    &lt;metadata minClientVersion="2.5"&gt;
      &lt;id&gt;$id$&lt;/id&gt;
      &lt;version&gt;$version$&lt;/version&gt;
      ...
    &lt;/metadata&gt;
    &lt;files&gt;
      &lt;file src="build\MyProject.targets" target="build\MyProject.targets" /&gt;
      &lt;file src="build\FrameworkTests\FrameworkTests.feature" target="build\Framework\FrameworkTests.feature" /&gt;
    &lt;/files&gt;
  &lt;/package&gt;
  </code></pre>
  
  <p>My .targets file like this:</p>
  
  <pre><code>&lt;Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt;
    &lt;ItemGroup&gt;
      &lt;None Include="$(MSBuildThisFileDirectory)FrameworkTests\FrameworkTests.feature"&gt;
        &lt;Link&gt;FrameworkTests.feature&lt;/Link&gt;
        &lt;CopyToOutputDirectory&gt;Copy if newer&lt;/CopyToOutputDirectory&gt;
        &lt;CustomToolNamespace&gt;&lt;/CustomToolNamespace&gt;
      &lt;/None&gt;
    &lt;/ItemGroup&gt;
  &lt;/Project&gt;
  </code></pre>
  
  <p>I am not seeing the FrameworkTests.feature file get copied to the project when the package is installed. What do I need to change?</p>