简体   繁体   中英

What is a CLR header in .net applications?

While using the ildasm.exe tool for disassembling other .Net applications, I came across the following line.

program.exe has not valid CLR Header and cannot be disassembled

But when I tried to disassemble my code, it didn't show any error, and disassembled the code easily.

As a result I am curious about what is a CLR Header and what can be the advantages/disadvantages of having a valid CLR Header for your assembly?

Can anybody please answer the above questions?

I checked the msdn, but couldn't find much information on the topic.

ILDASM.exe is meant to disassemble CLR code. If there is not a valid CLR header, it usually means that the executable was written in another language and compiled natively.

Try running .dll file instead of .exe file.

It will give desired output.

输出截图

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM