Basically I have this problem: I have a big solution with several projects. Each project builds into a dll which gets placed in its Bin directory at the project level. All the necesary dlls are also included in the bin directory. However, I want to be able to colllect all dlls for the solution into one folder for me to easily deploy onto the live server.
Put this into the Post Build Event in each of your projects:
xcopy /y $(ProjectDir)$(OutDir)$(
This will take the all output files from the current project and copy it to the solution root and into the folder called GAC. Doing this to each of the projects will give you the collection of dlls in that GAC folder.
If you want to only do this on Release Build add: