I have .nuspec file to create my package which contains nothing but a folder with text and other format files. I pack the folder like this:
<files>
<file src="myData\**\*.*" target="content" copyToOutput="true" />
</files>
When I install the nuget package I want this folder to be in my bin folder/output folder so that my program can relatively reference the files present. How can I achieve this since my nuget package doesn't have any .csproj to have .target file to copy files?
This isn't the exact answer to your question, but I am not sure if you can achieve this without a
.targetfile. As a workaround, you can create an empty.csprojwith a.targetfile which shall copy the items of your content folder: