I am using MSBuild to generate my nuget packages.
Is there any command I need to set, to allow it to include my .pdb files, for stepping into the source
While it may not help for debugging, it's definitely useful to include .pdb files so that stack traces have line numbers.
In the nuspec file, include a element (child of , sibling of ). This is what I have in one of my class libraries:
Make sure the target is the same folder as where your .dll file is put in the package.