O'Reilly logo

C# for Java Developers by Adam Freeman, Allen Jones

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required