且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何打包和部署带有符号和源代码的 NuGet 包,以便调试器可以使用该源代码?

更新时间:2023-02-16 14:54:11

一些基础知识:

  • 调试器需要 PDB 来启用调试
  • 符号包应包含 PDB(它不仅仅是具有不同扩展名的包)
  • 应将此符号包发布到 Visual Studio 调试器可以从中请求符号的符号存储库

下一步:

  1. 有关创建和发布符号包的信息,请参阅此 文档 到 nuget.org (.snupkg)
  2. 然后,请参阅此 doc 用于配置 Visual Studio 以使用 NuGet.org 作为符号源(使用添加符号服务器时的此值 https://symbols.nuget.org/download/symbols)
  1. See this doc for creating and publishing symbols package to nuget.org (.snupkg)
  2. Then, see this doc for configuring visual studio to for using NuGet.org as a symbol source (use this value when adding a symbol server https://symbols.nuget.org/download/symbols)