I am wondering if there are any heuristics for when to set copy-local=true
for references?
If referenced types are only used internally can I set copy-local
to true
but if referenced types are exposed as parameters or return values I set copy-local
to false
and indicate that a specific version of the dependency should be referenced when my library should be used?
Can anyone clarify this for me?
This option only affects build phase. It just copies the reference to local directory of the built assembly.
If another assembly (T) wants to use a method from the assembly you are building (A) which has return type or parameters from another referenced assembly (R), it (T) should be able to access that assembly (R). It might be able to do so without doing anything special if the referenced assembly (R) is installed in GAC. Otherwise, it needs a local copy of that.