Inside Assemblies

Assemblies can be made up of one or more files. Each file can be either a module or another assembly. The contents of an assembly could include a manifest, type metadata, IL code, and/or resources. One of the files in the assembly must contain a manifest. Figure 37.1 shows a possible assembly configuration.

Figure 37.1. Assembly example.

The example in Figure 37.1 shows three different files that make up an assembly. The main file, SomeAssembly.exe, contains all four elements of an assembly, including the assembly manifest. The other files, SomePictures.resources and SomeLibrary.netmodule, contain additions to the assembly.

Get C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.