Best practices with Nuget: Debug or Release?

后端 未结 4 529
野的像风
野的像风 2020-12-04 08:16

Currently, I package the release builds with Nuget for the official builds to nuget.org, but I package the debug builds with Nuget for the symbol source pushes to symbolsour

4条回答
  •  感情败类
    2020-12-04 08:44

    The example in the Creating and Publishing A Symbol Package references files in the Debug directories as sources for the dll and pdb files.

    Specifying Symbol Package Contents

    A symbol package can be built by conventions, from a folder structured in the way described in the previous section, or its contents can be specified using the files section. If you wanted to build the example package described previously, you could put this into your nuspec file:

    
       
       
       
       
      
    
    

    Since the purpose of publishing the symbols is to allow others to step through your code when debugging, it seems most prudent to publish a version of the code intended for debugging without optimizations that might affect the code step through.

提交回复
热议问题