I want to createa nuget package with a single file. Is there a way to package a single file and then instruct the file as to where it should be placed within a Visual Studio project?
I was able to make a nuspec file and package a nuget package which contains the file in question. However, it is not possible to be installed inside of a package.
More specifically: I have a configuration file which should be the same across many projects. I want to be able to install a nuget package which can them be installed to place the configuration file in the correct location.
The nuspec file right now just specifies the basics about the metadata. I then run nuget pack with that nuspec file and the configuration file in the directory. This results in a nuget package with the configuration file in it, which is uninstallable.
Here is what I have in the nuget package now:

and the nuspec file:
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>StyleCopSettings</id>
<version>1.0.1</version>
<title>StyleCopSettings</title>
<authors>Clearspan</authors>
<owners>Clearspan</owners>
<description>StyleCopSettings</description>
</metadata>
</package>


targetattribute of yourfileelement? - Panagiotis Kanavos