How do I tell if a win32 application uses the .NET runtime

不打扰是莪最后的温柔 提交于 2019-12-17 16:23:29

问题


How do I tell if an executable is a .NET application?

I prefer not to have to install Visual Studio. But if I have to I will. A commandline program is preferred.


回答1:


PEVerify will do that :)




回答2:


An application is a .NET executable if it requires mscoree.dll to run. You can check for this using the Dependency Walker, but in general any tool that gives you the list of required DLL's to run will do.

If you want to know if a running process is a .NET process, I can only recommend Process Explorer. This tool will give you a lot of information about the process, including some .NET properties.




回答3:


Or simpler : use the Process Explorer. Free download here




回答4:


Process Explorer colors dotNet applications using yelow color by default. That should be enough :)




回答5:


Drop it into Reflector and it will be de-compiled.




回答6:


Simpler yet:

  1. Open the properties, look at the tab "Version", if under "Other information" you see a property called "Assembly version" then it is likely a .NET application.

  2. Open the EXE or DLL with notepad or similar app and look for the text "mscorlib" (without the quotes). If you find it, it will most likely be a .NET application.




回答7:


You could use ILDasm.exe whitch is installed by default together with installing the .Net Framework SDK on your machine (look in C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin) Just open ildasm.exe en drop de the assembly in it, if it's dissambled it's a .net, if you receive an error it's not.




回答8:


"I prefer not to have to install Visual Studio. But if I have to I will. A commandline program is preferred."

You don't have to install Visual Studio just to run a .NET application - just the .NET framework which you can download on it's own.

But, if you want to determine whether it's a .NET application, you can download and use .NET Reflector or use ILDasm, which comes with the .NET framework SDK.



来源:https://stackoverflow.com/questions/751254/how-do-i-tell-if-a-win32-application-uses-the-net-runtime

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