I am currently working on a plugin system. I have a solution that contains, at the moment, two projects: the main program and a test plugin. The plugin is compiled into a DLL. I would like to copy the DLL into the main program's plugins folder.
My question is: is there a way so that I can have the dll automatically copied to the main program's plugins folder by referencing it (rather than using a path)? Also, it is possible to copy to the release/debug version as appropriate (debug version plugin should go to the debug version of the main program)?