Adding ILDasm to VS.NET with a keyboard shortcut

I often show students in my classes how to add ILDasm to their tools menu – it’s handy because you can then click on ILDasm and it will open the current module allowing you to look at the manifest, IL, etc.

1. Select Tools | External Tools. You’ll get the tools dialog:

Tools1.png

2. Enter ILDASM for the title and set the Command to the path for ILDASM. The path varies a bit from version to version of Visual Studio. For VS2008 you will find it at C:Program FilesMicrosoft SDKsWindowsv6.0Abinildasm.exe

3. Click the button to the right of Arguments and select “Target Path” and select the “Use Output Window” checkbox.

5. You should now be able to access Tools | ILDASM.

One student in another class recently asked how to get a keyboard shortcut to this. Michael Kennedy – our resident VS.NET shortcut king showed exactly how to do this. It turns out to be really simple — go to Tools | Options and select Keyboard. Then 1,2,3:

About Mark Smith

Windows systems developer with low-level operating system, threading and .NET experience. For the past several years I have been involved with WPF/Silverlight and most recently iOS and Android.

I have worked as an architect and designer for several companies and am particularly interested in client/server and graphical solutions.

Specialties:.NET, WPF, Silverlight, Windows, iOS