To create and configure an output assembly for linking, follow these steps.
- Click the Create New Assembly button on the Linked Assemblies toolbar. An entry for your new assembly appears on the linked assemblies list.
- Give your new output assembly a name by typing it in the Output Assembly field in the Linking Details section. You do not have to type path information; like all output assemblies, it will be written to the destination directory.
- Select the assemblies you want to link from the Input Assemblies list and drag them to the new assembly in the Linked Assemblies list. They will disappear from the Input Assemblies list and appear as child nodes of the new assembly.
- Right click on the input assembly that you wish to mark as your prime assembly and select Set Primary Assembly from the context menu. You can also do this by selecting the prime assembly and using the toolbar button. Prime assemblies are indicated with a tag icon.
- If needed, set the Name Mangling Policy and Entry Points for the new assembly.
- Repeat the process for each output assembly you want to create.
You can remove an assembly from the Linked Assemblies list by selecting it and using the delete button on the toolbar or by pressing the Delete key.
The screenshot below shows an example with multiple linked outputs. First, input assemblies Driver.exe and LibraryC.dll are linked into out.exe; next, LibraryA.dll and LibraryB.dll are linked into outlib.dll; and last, LibraryE.dll "passes through" without being linked.