如何从 Reflector 中查看代码的 XML 注释
我更喜欢使用反射器浏览程序集,即使我有源代码,特别是当我移动到新项目时。 但我觉得如果能在 Reflector 中看到源代码的 XML 注释就好了。
有任何插件可以做到这一点吗?
提前致谢, 乌代
I prefer to browse the assemblies using reflector even though i have source code with me specially in case when i move to new project.
But I feel it would be nice if i could see the XML comments of the source code in reflector.
Is any addin which would do that?
Thanks In advance,
Uday
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
XML 注释不会编译到程序集中 - 它们会进入单独的 XML 文件。 如果它是您的程序集,或者 XML 文件随您尝试分析的程序集一起提供,那么 Reflector 将自动选取它们。 如果没有 - 您别无选择,抱歉...
编辑:无论如何,这些注释不会与您的代码一起显示 - 您将在反汇编窗口下方看到它们,采用文档样式格式。
Edit2:如果您愿意,您似乎可以内联显示 XML 注释 - 设置对话框中有一个选项。 不知道! :)
XML comments are not compiled into assembly - they go into separate XML file. If it is your assembly, or XML file is shipped with the assembly you're trying to analyze, then Reflector will pick them up automatically. If not - you are out of options, sorry...
Edit: Anyway, those comments won't be displayed alongside your code - you'll see them below the disassembly window, documentation-style formatted.
Edit2: It appears that you can display your XML comments inline if you want to - there is an option for that in settings dialog. Didn't know that! :)
我想这可能对你有帮助。
http://www.red-gate.com/messageboard/viewtopic。 php?t=8630
I think this might help you.
http://www.red-gate.com/messageboard/viewtopic.php?t=8630