
- #Reflector 2 code how to
- #Reflector 2 code install
- #Reflector 2 code code
- #Reflector 2 code download
- #Reflector 2 code windows
If you would like the Reflector add-in (or any other add-in) to always load you will need to edit the 'Program Files\' file.
#Reflector 2 code code
Best of all you can use this as a jumping off point to do the same to code you're calling! You can now dissasembly, decompile and outline your code. Select 'Add.' and add the '' add-in.Īt this point Reflector's context menu items should appear on the VS.NET code context menu. Once Reflector has loaded inside VS.NET, select Reflector's 'Tools/Add-Ins.' menu item. Add Reflector to the Managed Add-Ins toolbox and double click/connect it. If you're using a different version you must recompile (it has been changing a lot recently so please check!). The pre-compiled '' will only work with version 3.2.5.0 or Reflector. config and add-in source I wrote earlier, extract it into the same directory as Reflector. Once you've done this you're ready to start writing a Reflector add-in. Rename the reference to Reflector.dll (and the file) back to Reflector.exe. Once you've done this exit Visual Studio and edit the. What you can do is rename Reflector.exe to Reflector.dll and add that to you project references.
#Reflector 2 code how to
The first minor issue was that Reflector is an EXE and it wasn't obvious how to compile against an EXE using VS.NET. Void Load(IServiceProvider serviceProvider) This would place the control called 'testSuiteTreeView' in a tool window with the caption 'Test Suite'. In this case you can declare the tool window as follows. In some cases you way want the control itself (rather than its contents) to be be parented by a tool window. This kind of tool window works well when the control is a container and you want the control's 'Text' property to be used as the tool window's caption. The control's 'Text' property will be kept in sync with the tool window's caption and when the control is made visable the tool window will be activated. In this case all controls of type '' will be created as Visual Studio tool windows. You will need to copy '' from 'Program Files\ManagedAddIns\' to your application's directory. Reflector is one of these applications and its tool window can be declared as follows.Īs you can see a 'managedAddIns' config section is defined. This is done by declaring the tool window in the application's.
#Reflector 2 code windows
There is a tweak you can do in many cases to make tool windows appear as VS.NET tool windows. Whereas these can work fine as Managed Add-Ins (particularly if you uncheck 'Dockable' on their tool window) they don't feel as integrated as they could be. On the other hand there are many applications that use tool windows in much the same way as Visual Studio. Just drag-and-drop and start running as an add-in. There are a lot of applications where this is all you will ever need to do. You are ready to dock the tool window and start reflecting away. At this point Reflector should appear inside VS.NET in a tool window. To start the application double click or right click 'Connect' the Reflector entry. To run Reflector as an add-in simply drag Reflector.exe onto the toolbox (click save if you want to keep it). You can use this to add, connect and configure your add-in applications. The add-ins toolbox should appear (dock it if it appears in the middle of the screen). Simply select 'Managed Add-Ins.' from the VS.NET 'Tools' menu. At each stage there was a fully functional add-in with differing levels in intergration.Īt its most basic level ManagedAddIns allows you to run pretty much any Windows Forms application as a VS.NET add-in. The add-in has been developed in 3 stages ranging in complexity from drag-and-drop to writing code that uses the Reflector SDK.
#Reflector 2 code download
After the download Reflector should appear in a tool window.

The first time the Reflector Add-In loads it will prompt you to download Reflector. Go to the 'Tools/Managed Add-Ins.' menu and select Reflector Add-In. That's all you will have to do! The new version includes the Reflector Add-In (make sure you uninstall any old versions first).
#Reflector 2 code install
Install the latest version of ManagedAddIns.msi.

If you're impatient and just want to see the Reflector add-in running - here's how you do it. I wanted to start developing it using VS.NET 2003 whilst maintaining compatability with 2002. I have been developing it using VS.NET 2002 but it has worked on both 20 for a while. I started writing the ManagedAddIns framework when NUnitAddIn (a unit testing add-in project I have been working on) started becoming unmanagable. It will be done using the ManagedAddIns framework. NET Reflector can be made into an Add-In for Visual Studio.NET. This article will show you how Lutz Roeder's.
