I have a Visual Studio 2005 .NET solution that has 20+ sub projects including a deployment project. The VS2005 .NET deployment project has a number of detected dependences, that have been manually excluded and corrected values manually added in.
Sometimes however, these detected dependencies get magically un-excluded, which triggers a warning on the build: WARNING: Two or more objects have the same target location ('[targetdir]\')
What is the trigger that causes a detected dependency to be un-excluded? Can deployment solutions have their warnings treated as errors so the nightly build won't proceed?