Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a .PE file in the .NET framework? [closed]

Tags:

c#

I want to know what is .PE file in .net projects, is it project specic and generated for each project once we compile it. Also .PE file keeps metadata+manifest info for a assemble. Also i am confuse on is there for each class in project CLR generates a .dll.

like image 918
NoviceToDotNet Avatar asked Dec 20 '22 18:12

NoviceToDotNet


1 Answers

It is not a file but the first section of any executeable file that the OS loads.

All windows executeables contain a PE header, in .NET executeables the header invokes the CLR virtual machine that .NET runs under (or gives you the error message saying you do not have .NET installed if you are targeting a version of .NET that is missing on the machine).

like image 108
Scott Chamberlain Avatar answered Jan 04 '23 20:01

Scott Chamberlain