NuGet Package Explorer extension: open dlls with ILSpy

One of the things I find useful is being able to decompile an assembly and explore its inner workings. I bet you all are familiar with such tools as DotPeek, ILSpy, and the evil one which shall remain unnamed..

If you want to explore assemblies which are packaged into a NuGet package, you have to go through a manual process:

You unzip the entire package, you find the dll you need in explorer, you open it in your favorite decompiler. Of course, you can also just open the package in Package Explorer, and save the assemblies you want into some location, then go to explorer, find your assemblies back and open them respectively.

Now, this is just cumbersome. People can call us lazy, developers now we have a name for it, even a best practice: it's DRY!

So those are my motivations to come up with a little extension to Package Explorer that can make your life easier. I've targetted ILSpy as my decompilation tool, simply because it also supports commandline arguments.

Project description

This extension to NuGet Package Explorer allows you to quickly open dll's from the package into ILSpy, without the need to extract the package, go into explorer, and open it up manually.

Getting started

To install the plugin, just open up NuGet Package Explorer and select Tools > Plugin Manager...

Add the downloaded library in the list of loaded plugins and you're good to go.

Just double click an assembly inside an NuGet package and it will prompt you to open it in ILSpy.

Of course you need to have ILSpy on your computer (as well as NuGet Package Explorer 1.5 or above).

Bits and pieces

This extension is open-source and available for you on http://npeilspy.codeplex.com.

Sharing is caring

Posted by Xavier Decoster on
Last revised: 17 May, 2013 08:45 AM
blog comments powered by Disqus