This documentation is archived and is not being maintained.

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

  1. In Solution Explorer, click the project name.

  2. On the Project menu, click Add Existing Item.

  3. Browse to the file or assembly, and click Add.

  4. In Solution Explorer, click the files or assembly.

  5. In the Properties window, set the Copy to Output Directory property to Copy always.

Date

History

Reason

August 2008

Added topic.

Information enhancement.

Show: