如何设置 ReSharper 以允许您导航到第三方 DLL 文件并查看源代码行?

发布于 2024-11-11 09:59:58 字数 643 浏览 9 评论 0原文

ReSharper 中的这一令人困惑的功能声称可以让您从 Visual Studio 中浏览外部源,请参阅外部源(ReSharper Web 帮助)。

但是,我不明白为文件夹替换选项设置什么值。 (Resharper - 选项 - 外部源 - 高级)

当我尝试导航到源时,我不断收到消息:

PdbNavigator:在汇编中的调试信息中找不到源

(这几乎是 Stack Overflow 问题的重复Visual Studio - 将源代码附加到参考,但该帖子没有解释如何附加外部源。

This confusing feature in ReSharper claims to let you browse external sources from within Visual Studio, see External Sources (ReSharper Web Help).

But, I don't understand what values to set for the folder substitution option. (Resharper - Options - External Sources - Advanced)

When I try navigating to source, I keep getting the message:

PdbNavigator: No sources found in debugging information for in assembly

(This is almost a duplicate of Stack Overflow question Visual Studio - Attach source code to reference, but that post did not explain HOW to attach external sources.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

锦上情书 2024-11-18 09:59:58

这很棘手,我终于弄清楚了:

  1. 单击“显示当前路径设置和 PDB 文件绑定”并查看 PDB 指向源的位置。
  2. 添加一个文件夹替换,其中源代码是 PDB 所说的源代码所在的位置(可能不是您计算机上的路径,而是编译 DLL 文件和 PDB 的系统上的路径)。将目标设置为您下载的源。

这是屏幕截图:

在此处输入图像描述

This is tricky, and I finally figured it out:

  1. Click "Show current path settings and PDB files binding" and look at where the PDB points to for source.
  2. Add a folder substitution where the source code is where the PDB says the source code is (probably a path not on your computer, but on the system that compiled the DLL file and PDB). Set the target to the source you downloaded.

Here's a screenshot:

Enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文