除了 TestDriven.NET 之外,是否有免费工具可以将 .NET Reflector 与 Visual Studio 集成?

发布于 2024-08-02 14:18:11 字数 400 浏览 2 评论 0原文

我喜欢 TestDriven.NET 安装的转到 Reflector 菜单选项。但是,TestDriven.NET 并不是免费用于商业用途,因此我在工作中没有使用它。

是否有另一个工具可以做到这一点 - 允许跳转到 .NET Reflector Visual Studio 中的源代码是完全免费的吗?

我知道可以开发一个 Visual Studio 插件来实现这一点,但是,唉,我没有时间,那么已经开发出一个插件了吗?

I love the Go to Reflector menu option installed by TestDriven.NET. However, TestDriven.NET is not free for commercial use and so I do not have it at work.

Is there another tool out there that does just that - allows to jump to .NET Reflector from the source code in Visual Studio and which is totally free?

I know it is possible to develop a Visual Studio add-in that does it, but, alas, I have no time for it, so has one already been developed?

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

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

发布评论

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

评论(3

ぃ双果 2024-08-09 14:18:11

最新版本的 Reflector 有您提到的免费捆绑的 Visual Studio 插件。

The latest version of Reflector have the Visual Studio add-in that you mention bundled with it for free.

骷髅 2024-08-09 14:18:11

我从 TestDriven.NET 作者那里了解到,将 .NET Reflector 与 Visual Studio 集成是非常困难的。他曾经提供免费的 .NET Reflector 插件,但(我不记得他的原因)决定将其整合到 TestDriven.NET 的新版本中。 我相信原始加载项的源代码 (ReflectorVsAddin.zip) 仍然存在。(找到旧的 .NET 1.1 / Visual Studio 2003 源代码,请参阅下面的更新。)有人可能拥有原始 ZIP 文件。

为了与旧版本的 Visual Studio 一起使用,我仍然保留了 ReflectorVsAddin.zip 中包含的全部或部分文件。我相信一些坚强的人可以拆解它们并根据这些技术创建一个插件。然而,搜索“Reflector Hosting”会出现大量有关如何将 .NET Reflector 与您自己的应用程序集成的文章。我相信从头开始会更容易。我个人认为,在 Visual Studio 之外使用 .NET Reflector 更容易使用。

更新

构建 Reflector 插件
作者:杰米·坎斯代尔
将 Reflector 制作为 Visual Studio.NET 加载项

更新

请参阅如何:将程序集加载到仅反射上下文中

My understanding from the author of TestDriven.NET is it is very difficult to intergrate .NET Reflector with Visual Studio. He use to provide a free .NET Reflector Add-in but (I don't remember his reason) decided to roll it up into newer versions of TestDriven.NET. I believe the source code (ReflectorVsAddin.zip) for the original add-in is still out there. (Found the old .NET 1.1 / Visual Studio 2003 source code, see the update below.) Someone probably has the original ZIP file.

To use with older versions of Visual Studio, I still have either all or some of the files included in ReflectorVsAddin.zip. I am sure some hardy soul could disassemble them and create an add-in based on the techniques. Yet, searching on "Reflector Hosting" resulted in numerous articles on how to integrate .NET Reflector with your own application. I believe it would be easier to start from scratch. I personally, find using .NET Reflector externally outside of Visual Studio easier to use.

Update

Building the Reflector Add-In
By Jamie Cansdale
Making Reflector into a Visual Studio.NET Add-In

Update

See How to: Load Assemblies into the Reflection-Only Context.

病女 2024-08-09 14:18:11

一种简单的解决方案可能是让您执行以下操作:

  1. 确保您已注册 Reflector,以便它显示在 Windows 资源管理器的上下文菜单中。
  2. 在 Visual Studio 中,确保在解决方案资源管理器中单击“显示所有文件”按钮
  3. 转到 bin/Debug 目录文件夹并右键单击该目录
  4. 选择“在 Windows 资源管理器中打开文件夹”
  5. 一旦 Windows 资源管理器出现,右键单击您的程序集并选择“使用 Reflector 浏览”

这不会让您找到您正在查看的确切代码(如 TD.Net 插件),但只需单击几下即可进入 Reflector,只需使用 find来定位代码。

One parial solution might be for you to do the following:

  1. Make sure you have Reflector registered so it shows on your context menu in windows explorer.
  2. In visual studio, make sure the "Show all Files" button is clicked in your solution explorer
  3. Go to the bin/Debug directory folder and right click on the directory
  4. Choose "Open Folder in Windows Explorer"
  5. Once windows explorer comes up, right click on your assembly and choose "Browse with Reflector"

This won't get you to the exact code you were looking at (like the TD.Net addin) but it will get you into reflector in a couple of clicks, just leaving you to use find to locate the code.

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