Unfortunately, I do not think that you can both exclude content files and include .pdb files during packaging through the project. You could do one or the other.
First, create a nuspec file (the nuget spec command does this quickly) and place it in the same place as your project. When you pack your project, NuGet.exe will consider the specification as an addition to your project information.
To exclude the content folder, when packing a project that also has a .nuspec file, an empty <files /> node parameter in the specification indicates that you do not want the content files, even if they exist in the project.
To include debug files, add something like this to your specification:
<files> <file src="bin\*.pdb" target="lib\net35\" /> </files>
but this will tell the tool that you have the content, and then it will add all the other files. You could possibly make a character pack for your project.
Another option is to create exclusively from the specification ( nuget pack Test.nuspec ) and specify exactly the files that you want to include. This takes longer, but gives you full control over the contents of the package.
brainiac10
source share