I am trying to set Copy Local property to True in visual studio 2015 but When I change it from false to true and move to the next property, the value changed back to false
The Copy Local property is set in the Reference Properties dialog box, available from the References pane of the Project Designer. 1. In Solution Explorer, click the Show All Files button to display the References node. 2. Open the References node for the project.
The Copy Local property (corresponding to CopyLocal) determines whether a reference is copied to the local bin path. At run time, a reference must be located in either the Global Assembly Cache (GAC) or the output path of the project.
No - Visual Studio uses an internal set of rules to determine what to set Copy Local to. From MSDN: If the reference is another project, called a project-to-project reference, then the value is true.
No - Visual Studio uses an internal set of rules to determine what to set Copy Local to. From MSDN: If the reference is another project, called a project-to-project reference, then the value is true. If the assembly is found in the global assembly cache, the value is false.
You will need to do the following
Click on the reference in the references tab
Hit F4 to bring up the properties grid
Set "Embed Interop Types" to False (this will ungray Copy Local)
Set "Copy Local" to true
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With