You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

VS2022中Resharper Object Browser的Go to declaration跳转异常求助

问题解决建议
  • 检查Resharper外部源的跳转行为配置
    打开Resharper设置(Alt+R, S),进入Environment > External Sources:

    • 取消勾选「Default to Assembly Explorer instead of Object Browser」
    • 确认「Navigation to external sources」设置为「Decompile sources」,而非「Open in Assembly Explorer」
    • 「When navigating to external symbols」选项选择「Decompile and show in editor」
  • 重置Resharper缓存
    缓存损坏可能导致跳转逻辑异常:

    1. 打开Resharper设置,进入Environment > General
    2. 点击「Clear Caches」,选择清除所有相关缓存
    3. 重启Visual Studio后测试跳转功能
  • 验证VS调试源设置与Resharper的兼容性
    即使重置过VS设置,仍需确认:

    1. 打开VS选项(Tools > Options > Debugging > General)
    2. 勾选「Enable Source Link support」和「Use source server support」,取消勾选「Require source files to exactly match the original version」
    3. 回到Resharper的External Sources设置,确保「Fall back to decompilation when sources are not available」已勾选
  • 排查特定程序集的引用问题
    如果仅部分游戏相关程序集出现异常:

    1. 尝试重新引用目标程序集
    2. 删除项目目录下的.vs、bin、obj文件夹,重建项目后测试
  • 临时替代方案
    若以上方法均无效,可通过以下步骤跳转:

    1. 在Object Browser中找到目标类,右键选择「Copy Full Name」
    2. 使用Resharper的「Go to Symbol」功能(快捷键Ctrl+Alt+Shift+N),粘贴类的全名后执行跳转,通常可直接打开反编译源码

内容的提问来源于stack exchange,提问作者Kaito Kid

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.14 12:54:59