当要复制本地设置为true,当它不应该? [英] When should copy-local be set to true and when should it not?

查看:425
本文介绍了当要复制本地设置为true,当它不应该?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有任何启发式时设置复制本地=真正的的参考?

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?

推荐答案

复制本地的部署方案和工具非常重要。作为一般规则,你应该使用CopyLocal = true如果引用没有包含在GAC中。

Copy local is important for deployment scenarios and tools. As a general rule you should use CopyLocal=True if the reference is not contained within the GAC.

复制本地基本上意味着我必须手动部署该DLL,以便为我的应用程序工作。当它是假的这实际上意味着我靠必须单独安装或链接另一个组件,DLL将只在那里已经是。

Copy Local essentially means I must manually deploy this DLL in order for my application to work. When it's false it essentially means "I depend on another component which must be installed separately or chained, the DLL will just be there already".

这篇关于当要复制本地设置为true,当它不应该?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆