Assemblies
Assemblies are usually created using the C# compiler; however, Assembly Linker (al.exe) might be required under certain circumstances. We demonstrate one area where the assembly linker is required later in this chapter in Creating a Multifile Assembly.
The format of an assembly governs how it can be used; for example, the exe and winexe formats are executable but cannot be imported as references to other assemblies. The format of an assembly is specified using the /target:<format> switch on the C# compiler and the assembly linker. Table 3-3 details the four assembly formats.
Table 3-3. The Four Formats for an Assembly
Assembly Format | Description |
|---|---|
exe | A console executable. The assembly must contain one entry point, which is defined as a valid ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access