问题描述
我的 C# 项目引用了我拥有源代码的第三方 DLL.我能否以某种方式告诉 Visual Studio 该源代码的位置,例如,当我按 打开 DLL 中方法的定义时,它将打开源代码,而不是打开类[来自元数据]"存根代码?
My C# project references a third-party DLL for which I have the source code. Can I somehow tell Visual Studio the location of that source code, so that, for example, when I press to open the definition of a method in the DLL, it will open up the source code, instead of opening up the "Class [from metadata]" stub code?
推荐答案
如果您使用 ReSharper,您可以通过转到 ReSharper/Options/External Sources 启用它,然后向上移动来自符号文件的源".然后在符号文件来源"选项卡中,单击高级",您可以在那里映射源文件夹.
If you use ReSharper, you can enable it by going to ReSharper / Options / External Sources, and move up "Sources from symbol files". Then in the tab "Sources from symbol files", click "Advanced" and there you can map source folders.
这篇关于Visual Studio - 附加源代码以供参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!