I am trying to set a referenced DLL to be explicitly copied to my local folder however when I go to the properties for this reference, the Copy Local
property is grayed out / disabled.
Usually my VB.NET projects have a My Project
item directly below the project name which I can double-click >> references and set the Copy Local
property, however my C# console application does not seem to have this.
Have I perhaps configured my project incorrectly? Any help on this will be greatly appreciated.
Directly from this SO post:
If you want to copy local, you must set
Embed Interop Types
toFalse
for the assembly, in your case,Microsoft.Office.Interop.Excel
. Embed Interop Types makes deployment easier for COM assemblies in that it embeds the assemblies within your assembly, taking away the need to deploy interop assemblies with the application.