mark
mark

Reputation: 62836

Is there a free tool to integrate .NET Reflector with Visual Studio, besides TestDriven.NET?

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?

Upvotes: 5

Views: 1481

Answers (3)

AMissico
AMissico

Reputation: 21684

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.

Upvotes: 1

Mel Harbour
Mel Harbour

Reputation: 381

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

Upvotes: 1

Jason Haley
Jason Haley

Reputation: 3800

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.

Upvotes: 0

Related Questions