π Read the full lesson on DevLadder (free, lesson 4 of 11 in the .NET Internals: CLR, CTS, CLS, IL, JIT, Memory Management & Garbage Collection course)
An assembly is the unit of deployment, versioning and security: a .dll or .exe containing:
Part Contains
PE header Windows/OS executable format
CLR header Runtime version, entry point, flags
Metadata Every type, method, field, parameter, attribute and referenced member: what reflection and IntelliSense read
IL code Method bodies
Manifest Assembly identity (name, version , culture, public key token), list of files, referenced assemblies
Resources Embedded files, localised strings
Kinds: private assemblies (in the app folder, the norm today), shared assemblies in the GAC (Global Assembly Cache, .NET Framework only, C:\Windows\Microsoft.NET\assembly ), satellite assemblies (localised resources, fr\MyApp.resources.dll ).
The full lesson goes on to cover: Strong name, AppDomain vs AssemblyLoadContext.
Continue reading the lesson β
An interviewβ¦