Visual Studio .NET / 2005 / 2008 projects typically use a different path for the output/target dll for each configuration. Because of this, assembly references to these files in other projects are problematic. To resolve this problem, the assembly references can be made configuration-generic by using $(ConfigurationName) instead of a specific configuration name. The attached sample demonstrates how to update all assembly references in this manner for all projects.
for more details.