无法使用加载的符号进入 Nuget 库
Unable to Stepinto Nuget library with Symbols loaded
我已将我的 Nuget 库上传到 Azure Devops Artifacts。它还将符号文件 (.PDB) 发布到 Azure Devops 符号服务器。我在我的 Visual studio 中添加了设置,以按照 here 中提到的说明从 Azure Devops Symbols 服务器加载符号。
在运行时,当我尝试进入(Nuget 库的)代码时,我收到错误提示无法找到 .cs 文件的路径。我已经尝试了各种建议的解决方案,例如取消选中启用即时代码、启用 .Net Framework 源步进等。但没有运气。
问题是:
- 我已经使用构建配置作为 Release 构建了 nuget 包。这就是我无法进入代码的原因吗?我认为在 VS 中加载 PDB 文件应该有助于克服这个问题。请指教
I have build the nuget package using the build configuration as
Release. Is that the reason why I m unable to step-into the Code? I
thought having a PDB files loaded in VS should help overcome this.
这不是您无法单步执行代码的原因。即使您使用从 Release
模式构建的 nuget 包,它也应该可以工作。请检查这三个提示:
1.Make 当使用 Index sources and publish symbols
任务到 publish symbols for debugging.
时,确定你 select 与我的设置相同
2.In Visual Studio,添加新的符号服务器(拥有管道并托管工件提要的组织):
3.Uncheck 在调试中只启用我的代码=>一般:
然后它在我这边运作良好。希望我的步骤能有所帮助。有关此主题的更多信息,您可以参考 this blog.
我已将我的 Nuget 库上传到 Azure Devops Artifacts。它还将符号文件 (.PDB) 发布到 Azure Devops 符号服务器。我在我的 Visual studio 中添加了设置,以按照 here 中提到的说明从 Azure Devops Symbols 服务器加载符号。
在运行时,当我尝试进入(Nuget 库的)代码时,我收到错误提示无法找到 .cs 文件的路径。我已经尝试了各种建议的解决方案,例如取消选中启用即时代码、启用 .Net Framework 源步进等。但没有运气。
问题是:
- 我已经使用构建配置作为 Release 构建了 nuget 包。这就是我无法进入代码的原因吗?我认为在 VS 中加载 PDB 文件应该有助于克服这个问题。请指教
I have build the nuget package using the build configuration as Release. Is that the reason why I m unable to step-into the Code? I thought having a PDB files loaded in VS should help overcome this.
这不是您无法单步执行代码的原因。即使您使用从 Release
模式构建的 nuget 包,它也应该可以工作。请检查这三个提示:
1.Make 当使用 Index sources and publish symbols
任务到 publish symbols for debugging.
2.In Visual Studio,添加新的符号服务器(拥有管道并托管工件提要的组织):
3.Uncheck 在调试中只启用我的代码=>一般:
然后它在我这边运作良好。希望我的步骤能有所帮助。有关此主题的更多信息,您可以参考 this blog.