Decompile, browse, and analyze any. NET, or IL. Desktop application Use the standalone application to explore and navigate decompiled code. Search filtering Get results as you redgate reflector and find what you’re looking for easily.
.Net Reflector 10
Guest post: We liked it, and asked him to tell us a bit more… Using. NET Reflector to understand the internals of Visual Studio assemblies since many years ago, and I consider it an invaluable tool for developers of Visual Studio extensions add-ins, packages, etc.
In this guest post I will explain why. Developing a somewhat complex Visual Studio extension, there are two scenarios where you may desire to have the Visual Studio source code and even to debug its assemblies: To understand how Visual Studio does some kind of things, because you need to do the same or similar ones in your own extension.
To guess which code path inside a method is actually used at run-time. I mean: Microsoft has released the source code of the. NET Framework and you can even debug its assemblies , but it hasn’t done the same with Visual Studio assemblies. This is where.
NET Reflector comes to the rescue. You can use. NET Reflector for those two scenarios. I’ll illustrate this with a real case The first scenario is to decompile Visual Studio assemblies.
Visual Studio assemblies are stored in the GAC 2. My MZ-Tools 7. Forms 4. If you decompile that assembly with. NET Reflector you will see that the bitmaps are the colored ones of previous versions: I knew that in a previous beta the bitmaps of the System. But that of course broke the Document Outline feature of Visual Studio , showing the bitmaps of Visual Studio gray rather than the colored ones. To discover which, I decompiled the Visual Studio assembly that contains the Document Outline feature.
This happens to be Microsoft. By the way, this is the only thing that. NET Reflector can’t do for you: Once you have loaded the version of the assembly that belongs to Visual Studio in. NET Reflector v4. So, there is a BitmapSelector that, if you load the version of the assembly that belongs to Visual Studio v4.
How the BitmapSelector gets the correct bitmap is beyond the scope of this post, but if you are interested you can read my article HOW TO: Get the bitmap of a component type from Visual Studio add-in.
The second scenario is to debug Visual Studio assemblies. For years, I have used. NET Reflector only to decompile assemblies. Recently I was thrilled to discover that I could debug them too and I wish I had discovered it much earlier. Continuing with the first scenario, suppose that you want to debug that AddComponent method to learn how Visual Studio gets the correct bitmap.
This is how you would proceed: NET Reflector”, “Show. Create a Class Library project. Save the solution so that the. It doesn’t show them with temporary solutions. In the Solution Explorer, add a reference to the Visual Studio assembly that you want to debug.
In this example using the Browse button add the following assembly: In the. Click the “Done” button when the decompilation is complete. Forms” namespace, DocumentOutline class, AddComponent method and double-click it to open its source code. Put a breakpoint on that method. Visual Studio should be launched and the breakpoint should show with an exclamation mark which means that the debugged assembly is not loaded yet.
Show the Document Outline toolwindow. Create a Windows Forms application. The exclamation mark should disappear indicating that the debugged assembly is loaded and the debugger is attached, and the breakpoint should be hit because Visual Studio needs to get the bitmap for the Form component.
Add some control to the form from the toolbox. The breakpoint should be hit again. These are two scenarios where. NET Reflector can save you a lot of time integrating your extensions within Visual Studio — because extensibility is tricky, and Visual Studio’s own features already do many things that you need to do with your own. So it’s worthwile to learn how Microsoft does it. He is the author of MZ-Tools www.
Download a free trial crack-all.com Reflector later on your PC. NET Reflector to understand the internals of Visual Studio.
VIDEO: Redgate Reflector
crack-all.com Reflector, you can decompile and crack-all.com assemblies and executables and disassemble the source code into your chosen. Also take a look at ILSpy by SharpDevelop. It’s in early stages of development and they just made a release on the 24th of February. That in itself works pretty.