Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not find ildasm.exe at location C:\Program Files (x86)\Microsoft visual studio 11.0

How does the Developer command prompt for Visual studio 2012 search the location of ildasm.exe. Running command window Developer command prompt for Visual studio 2012 will point to location C:\Program Files (x86)\Microsoft visual studio 11.0 but at this location ildasm.exe couldn't be found. In fact input to command window, ildasm.exe will open the ildasm tool.

Can any one clarify how does Developer command prompt for Visual studio 2012 locate the physical ildasm.exe.

like image 499
Srikanth Avatar asked Apr 11 '14 07:04

Srikanth


People also ask

Where Ildasm exe is located?

It will find ildasm.exe in i.e. c:\Program Files (x86)\Microsoft SDKs\Windows\v8. 0A\bin\NETFX 4.0 Tools\ .

How do I use Ildasm exe in Visual Studio?

To use the GUI, type ildasm at the command line without supplying the PEfilename argument or any options. From the File menu, you can navigate to the PE file that you want to load into Ildasm.exe. To save the metadata and disassembled code displayed for the selected PE, select the Dump command from the File menu.

How do I use the Ildasm tool?

To display the contents of an assembly using Ildasm.exe, enter ildasm <assembly name> at a command prompt. For example, the following command disassembles the Hello.exe assembly. To view assembly manifest information, double-click the Manifest icon in the MSIL Disassembler window.

What does ILDASM Exe show?

Ildasm.exe shows only metadata descriptions for .obj and .lib input files. IL code for these file types is not disassembled. You can run Ildasm.exe over an.exe or .dll file to determine whether the file is managed.

How do I run ILAsm in Visual Studio?

Ildasm.exe takes a portable executable (PE) file that contains intermediate language (IL) code and creates a text file suitable as input to Ilasm.exe. This tool is automatically installed with Visual Studio. To run the tool, use Visual Studio Developer Command Prompt or Visual Studio Developer PowerShell.

Does ILDASM work on files installed in the Global Assembly Cache?

It does not operate on files installed in the global assembly cache. The text file produced by Ildasm.exe can be used as input to the IL Assembler ( Ilasm.exe ). This is useful, for example, when compiling code in a programming language that does not support all the runtime metadata attributes.

When should I use ILDASM Il?

This is useful, for example, when compiling code in a programming language that does not support all the runtime metadata attributes. After compiling the code and running its output through Ildasm.exe, the resulting IL text file can be hand-edited to add the missing attributes.


2 Answers

When you start Developer command prompt for Visual studio 2012 the command (it is a bat script) modifies environment PATH (and other things that does not matter in this case).

You can see the difference when you type set in Developer command prompt for Visual studio 2012 and in classic cmd.

When you open Developer command prompt for Visual studio 2012 it is true that you land in C:\Program Files (x86)\Microsoft visual studio 11.0 but thanks to the modified PATH variable windows will look in every directory mentioned by this variable.

It will find ildasm.exe in i.e. c:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\.

like image 115
pepo Avatar answered Sep 28 '22 18:09

pepo


please check following section. I am using VS 2013 & 2015.

  • C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin
  • C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools
  • C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools
  • C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6 Tools
  • C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools
  • C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.1 Tools

If you want to use them from Visual Studio Directly. You can try following URL

Launch ildasm tool from inside visual studio itself how

like image 25
reza.cse08 Avatar answered Sep 28 '22 17:09

reza.cse08