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
The approach that worked for me was adding the PDB as content which had the benefit it will be copied alongside the DLL. (PackageCopyToOutput was required)
netstandard2.0
false
true
true
true
EmbedAllSources - Will include source code in the PDB for easier debugging.
You may also want to consider setting "Optimize" to false for improving debugging experience in release configuration.