Include pdb files into my nuget (nupkg) files

前端 未结 6 563
盖世英雄少女心
盖世英雄少女心 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:17

    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.

提交回复
热议问题