Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Project Properties
Project Designer
Managing References
 How to: Set the Copy Local Property...

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Visual Studio 
How to: Set the Copy Local Property of a Reference 

The Copy Local property (corresponding to CopyLocal) determines whether a reference is copied to the local bin path. At run time, a reference must exist in either the Global Assembly Cache (GAC) or the output path of the project. If this property is set to true, the reference is copied to the output path of the project at run time.

NoteNote

If you deploy/copy an application that contains a reference to a custom component that is registered in the GAC, the component will not be deployed/copied with the application, regardless of the Copy Local setting. For more information, see Project References.

The Copy Local property is set in the Reference Properties dialog box, accessible from the References pane of the Project Designer.

To set the Copy Local property to True

  1. In Solution Explorer, double-click the My Project node for the project.

  2. In the Project Designer, select the References tab.

  3. Select a referenced component in the References list.

    The properties associated with that reference appear in a list in the Properties window.

  4. Select Copy Local from the left-hand column, and then click the arrow in the right-hand column to change the value to True.

To set the Copy Local property to False

  1. In Solution Explorer, double-click the My Project node for the project.

  2. In the Project Designer, select the References tab.

  3. Select a referenced component in the References list

    The properties associated with that reference appear in a list in the Properties window.

  4. Select Copy Local from the left-hand column, and then click the arrow in the right-hand column to change the value to False.

See Also

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker