Export (0) Print
Expand All

How to: Publish Referenced Assemblies

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.

Applies to: The information in this topic applies to document-level projects and application-level projects for Microsoft Office 2010 and the 2007 Microsoft Office system. For more information, see Features Available by Office Application and Project Type.

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.

To add references to assemblies that have secondary references

  1. In Solution Explorer, click the project name.

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

  3. Browse to the assembly, and click Add.

  4. In Solution Explorer, click the assembly.

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

Community Additions

ADD
Show:
© 2014 Microsoft