Let's assume I have a C# Winforms project, MainGUI.
It references another project in the same solution, ControlsLib.
ControlsLib references a third party control suite, such as Infragistics or Telerik controls, and exposes a set of user controls, that are used in MainGUI.
Copy Local is set to true on all the references in ControlsLib, and all the third party DLLs appear in ControlsLib\bin\release.
However I cannot get the third party DLLs to copy automatically to MainGUI\bin\release, which is the folder from which the software's installer is generated (in this case using NSIS)
Therefore the third party control DLLs don't get included in the installation, which leads to a FileNotFoundException at runtime when controls from ControlsLib that depend on the third party DLLs are used.
Is there a "proper" way to do this that I'm not aware of? Previously I've just handled this in a nant build script by copying files around, but I'm starting a new project and I just wanted to check.
Thanks