Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Copy Local" does not copy assemblies to output directory

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.

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.

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

like image 684
Stefan Avatar asked Jul 18 '11 12:07

Stefan


1 Answers

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".

like image 148
Marc Gravell Avatar answered Oct 01 '22 02:10

Marc Gravell