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

人盡茶涼 提交于 2019-12-20 09:51:42

问题


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.


回答1:


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\.




回答2:


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




回答3:


There are various developer command prompts for different targets, each starts a batch file that modifies the PATH and some other things so that various developer programs can work.

Note that each command window started by these batch files starts with the PATH specified via the user and system environment settings. The batch files then modify the PATH etc within just that command window. Starting a new command window will not get the settings from the batch file as it does not modify the user and system environment settings.

If you really want easy access to ildasm.exe frequently from a command window you can modify the user environment settings. On Windows 7 you can access these settings via the properties of the computer where you select "advanced system settings" and then "environment variables".



来源:https://stackoverflow.com/questions/23006728/could-not-find-ildasm-exe-at-location-c-program-files-x86-microsoft-visual-st

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!