This issue concerns TFS 2010 SP1, and not 2012 as I can select under the version drop down.
Error reproduced here, and told to post on connect: http://social.msdn.microsoft.com/Forums/en-US/tfsversioncontrol/thread/2905b1c9-af13-4736-afb0-4397c0685474
When we merge changes between branches, we verify that it builds by creating a shelveset of all merge pending changes, and running a validate shelveset build on a build server.
For the second time we have now run into a situation where we have build failures, which have proven to be caused by unshelve failing (silently). The build failure is due to old deleted projects being "resurrected" and built.
Our build automatically creates a solution with all projects found in all directories. And since unshelving brings the workspace into a state where deleted projects are "resurrected", these projects are built and causes errors.
The only indication is from the revert workspace activity in the build which lists the following type of warnings:
C:\Builds\42\Sources\code\aa\bb\cc cannot be deleted because it is not empty.
I can get the same messages when calling tf.exe unshelve shelveset in a clean workspace.
Follow steps to reproduce.
The files in test00sub might not be under version control, but since I started with a clean workspace, it should be unshelve's job to clean them up.
This seems like a bug with unshelve. And since this happens in the SyncWorkspace activity during a build, I can't figure out how I would be able to make any kind of workaround.
Is it possible to get a hotfix for this issue?