How to Display IL code in Visual Studio?

Here’s a simple tip on how to display the IL code by running ildasm.exe inside Visual Studio. The IL code will be displayed in the output window of Visual Studio.

How to Display IL code in Visual Studio ?

To view the IL in Visual Studio , you must include the ildasm.exe to the tools menu using Add external tools button .

1. Click the Tools menu and then the External Tools.

How to Display IL code in Visual Studio 2010 ?

2. In the External tools dialog , Click the Add button . Give the title name and select the path to the exe and the arguments . Make sure that “Use Output Windows” is checked to displa the result in the output window . Click Ok

How to Display IL code in Visual Studio 2010 ?

3. Now , you should see the ildasm tool in the tool menu .

How to Display IL code in Visual Studio 2010 ?

4. Open the Visual Studio 2010 Project/ Solution file . In this example i used my Windows Phone 7 Project .

5. Click ildasm in the tools menu . This will open the dialog’s menu asking for the arguments , click ok .

How to Display IL code in Visual Studio 2010 ?

6. Now , the IL code should be displayed in the output window for the Windows Phone 7 project

How to Display IL code in Visual Studio 2010 ?

    1 Comment

  1. javi
    June 29, 2011
    Reply

    really useful! thaks

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn about the error code “SCC_E_BACKGROUNDGETINPROGRESS” returned by the Visual Studio when using the Source Control...
In this post, you’ll learn about the error code “SCC_E_UNKNOWNERROR” returned by the Visual Studio when using the Source Control...
In this post, you’ll learn about the error code “SCC_E_CONNECTIONFAILURE” returned by the Visual Studio when using the Source Control...