Maybe project references [1] would help here? Otherwise, perhaps you could use the Replace in File action (or some script that uses MSXML [2]) to fix up your project files as needed before building.
[1]
http://msdn.microsoft.com/library/de...l/tdlg_ch3.asp
[2]
http://www.kinook.com/Forum/showthread.php?threadid=427