views:

310

answers:

4

Dear ladies and sirs.

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

I am wondering if there is another tool out there that does just that - allows to jump to Reflector from the source code in VS and which is totally free.

I know it is possible to develop a VS add-in that does it, but, alas, I have no time for it, so if anyone has already developed something like this - feel free to share.

Regards,

A: 

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.

Jason Haley
I have already an external VS tool that opens reflector on the target path of the currently open item. I still wonder if that is the best we can hope to achieve without TD.NET.
mark
What's the external VS tool?
Cheeso
One can define external tools in VS - go to Tools|External Tools...Specify the path to Reflector.exe and in the command line arguments one can give the path of the target exe/dll. Name the tool "Open Reflector". Running it will open the current exe/dll in Reflector. Using reflector url format you can even navigate to the source code of the currently open file. But, TD.NET allows to navigate to the source code of the current frame in the call stack, something which cannot be done via external tools facility.
mark
A: 

Dupe?

http://stackoverflow.com/questions/234043/how-to-make-reflector-an-addin-for-visual-studios

orip
Not quite. I am not talking about Reflector plug-in for VS, but for a tool to integrate Go To Reflector menu option in VS like TD.NET does. Only free and without the unit test stuff.
mark
+1  A: 

My understanding from the author of TD.NET is it is very difficult to intergrate Reflector with Visual Studio. He use to provide a free Reflector Add-in but (I don't remember his reason) decided to roll it up into newer versions of TD.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 souce code, see 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 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
http://www.codeproject.com/KB/macros/reflectoraddin.aspx

Update

How to: Load Assemblies into the Reflection-Only Context at http://msdn.microsoft.com/en-us/library/ms172331.aspx.

AMissico
I would like to have the source code. Where can I found it and whether Jamie Cansdale (the author of the original plugin and TD.NET) allows to reuse it?
mark
Thanks, I have downloaded it. Hope I get some free time to examine it, though I doubt. Thanks anyway.
mark
All I have are the originl binaries that I kept around for earlier versions of Visual Studio. ftp://missico.net/Reflector.VisualStudio.zip
AMissico
Unfortunately, the codeproject article is irrelevant for VS2005 or VS2008.
mark
True, but it is a start and helps flush out the answer.
AMissico
A: 

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

Mel Harbour