We have a couple of DLLs that need to be put in the GAC at compile time only in Debug mode as this is what developers use locally. Release mode will be the Continuous Integration server build and we will not want to put any dlls in the GAC.
We used to do something similar with post build events on a project, but if a post build event can be conditionally run if debug.
What is the best way to achieve this?