Duplicate - this exact question was asked here - the only solution seems to be post build event.
In Visual studio 2008, I have the following projects:
A - references B
B - references Lib.dll
When B is built, Lib.dll appears in B/bin/Debug. (this is ok)
When A is built, B.dll appears in A/bin/Debug, but Lib.dll does NOT appear in A/bin/Debug.
Wouldn't it be logical behavior to copy also all B's dependencies to output path of A, since B will need these assemblies at run-time?
All references have copylocal = true.
(Now I have to reference all B's dependencies from A by hand, is that correct? I could also use a custom build step I guess. Anyway, does this behavior have any advantages/sense?)