5

我喜欢TestDriven.NET安装的Go to Reflector菜单选项。但是,TestDriven.NET 不能免费用于商业用途,所以我没有在工作中使用它。

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

我知道可以开发一个 Visual Studio 插件来实现它,但是,唉,我没有时间做它,所以已经开发了一个吗?

4

3 回答 3

1

最新版本的 Reflector 包含您提到的 Visual Studio 加载项免费捆绑。

于 2010-04-14T08:39:58.047 回答
1

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

要与旧版本的 Visual Studio 一起使用,我仍然拥有包含在ReflectorVsAddin.zip. 我相信一些顽强的灵魂可以分解它们并根据这些技术创建一个插件。然而,在“Reflector Hosting”上进行搜索会发现大量关于如何将 .NET Reflector 与您自己的应用程序集成的文章。我相信从头开始会更容易。我个人觉得在 Visual Studio 外部使用 .NET Reflector 更容易使用。

更新

构建反射器
插件 Jamie Cansdale
将反射器制作成 Visual Studio.NET 插件

更新

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

于 2009-10-26T07:03:33.283 回答
0

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.

于 2009-08-27T12:22:59.027 回答