Original address:http://www.myext.cn/other/a_25162.html
In previous versions of VS2010, there was Il disassembler (il Intermediate Language Viewer) under Tools, but I wanted to integrate it directly into the VS2012 using the following method:
1. Select Tools/External tools to open external tools
2, click "Add" button on the right, fill in the relevant parameters
Title: ILDASM
Command: Is the installation path of Ildasm.exe, select the path on your own disk according to the situation
Parameter: Note that the destination file path needs to be selected here
Initial directory: Destination file directory
3. After adding, you can see the ILDASM under the Tools tab
4, click the tool/ildasm, pop up the confirmation window, click OK
Contents of the command line: D:\Code\CSharp\ildasm40\ildasm.exe "D:\Users\Documents\Visual Studio 2012\projects\consoleapplication1\ Mycollection\obj\debug\mycollection.exe "
The first half of the command line is the installation path of my ildasm, and the second part is my project path
5. Open the graphical interface of the ILDASM tool
6. Double-click the method you want to view, the Il code pops up
Attached: IL disassembler legend
Summary: I have not configured the information to see IL directly in the Output tab of VS comes with
Configuring and viewing Il in Visual Studio (reprinted)