Include pdb files into my nuget (nupkg) files

前端 未结 6 564
盖世英雄少女心
盖世英雄少女心 2020-12-13 12:52

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

6条回答
  •  隐瞒了意图╮
    2020-12-13 13:19

    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.

提交回复
热议问题