Saravanan
Saravanan

Reputation: 7854

what is the difference between an ordinary exe file and the exe file generated from .net windows applications

what is the difference between an ordinary exe file and the exe file generated from .net windows applications.

Upvotes: 14

Views: 1488

Answers (2)

Roger
Roger

Reputation: 15813

None, they are both executable files.

EDIT:

OK, I can see that wasn't very helpful. In one respect they are the same since they both trigger the same action from the operating system to start with, but as has been explained, there is deeper magic going on and that's more likely to be what the OP wanted to know.

Upvotes: 0

Aliostad
Aliostad

Reputation: 81660

EXE generated by .NET has a normal PE header but then has instructions to load MSCorEE.DLL. See my answer here.

Basically according to CLR via C# .NET EXE's Managed Module contains (in this order):

  • PE32 or PE32+ header
  • CLR header
  • Metadata
  • IL Code

Upvotes: 15

Related Questions