What type of projects are you building? For VS.NET, you can either create a separate step for each solution configuration to be built or use this technique (limiting to just the configurations you're interested in):
http://www.kinook.com/Forum/showthread.php?threadid=412