How to: Deploy Additional Files and Referenced Assemblies (2007 System)
Updated: August 2008
The ClickOnce installer can include referenced assemblies in your deployment package. These referenced assemblies may contain functionality that you separated into a different class library or DLL.
Typically, you add references to your Microsoft Office project by using the Add Reference dialog box. Assemblies that you add this way automatically have their Copy Local property set to True, which means that they are copied to the project directory. However, if the assembly that you want to reference has secondary references that you need to include, you must perform an extra step. You can add the DLL to your project, and change the Copy to Output Directory property to Copy Always.
The following procedure demonstrates how to reference a DLL with secondary references that you need to include in your project. This procedure also applies to data and files in other projects.
To add references to files and assemblies
In Solution Explorer, click the project name.
On the Project menu, click Add Existing Item.
Browse to the file or assembly, and click Add.
In Solution Explorer, click the files or assembly.
In the Properties window, set the Copy to Output Directory property to Copy always.