本文介绍了"复制本地"不复制组件,以输出目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个程序集X中所引用 System.Interactive System.Reactive 从lib文件夹。然后,我有组装y表示所引用的X.

I have an assembly X that is referencing System.Interactive and System.Reactive from a lib folder.Then I have assembly Y that is referencing X.

在x对于两者 System.Interactive System.Reactive ,复制本地设置为true 。在Y表示X'复制本地设置为true。 System.Reactive System.Interactive 不在GAC。

In X for both, System.Interactive and System.Reactive, 'Copy Local' is set to true.In Y for X 'Copy Local' is set to true.System.Reactive and System.Interactive are not in the GAC.

当我建立Y, System.Interactive System.Reactive 不会被复制到输出目录。为什么呢?

When I build Y, System.Interactive and System.Reactive are not copied to the output directory. Why?

推荐答案

Y不继承X复制本地选项,如果你想System.Interactive和System.Reactive部署与Y,然后参考他们俩Y和Y轴将其标记为复制本地=真正的

Y does not inherit "copy local" options from X. If you want System.Interactive and System.Reactive to be deployed with Y, then reference them both from Y, and in Y mark them as "Copy Local = true".

这篇关于"复制本地"不复制组件,以输出目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-12 09:29