Subfolder overwrite issue in Team System RTM

We're having a strange problem with Team System, and we were hoping the RTM would fix it, but it didn't.

One of our projects relies heavily on generated code files. That means we frequently need to replace files in the solution with newer, regenerated versions of existing files.

This team has typically used drag and drop to place the new files in the solution. Unfortunately, we found out that drag and drop to subfolders, for files under Team System source control, has irrational behavior. I created an animated GIF movie to illustrate the problem in a fresh install of Team System RTM:

In the video, I drag and drop a new Class1.cs into to the /Subfolder directory in the solution, intended to overwrite the Class1.cs file that already exists in that folder. What happens is.. bizarre:

  • \Subfolder\Class1.cs is overwritten with the new content but never checked out
  • \Class1.cs is inexplicably checked out
I demo both drag and drop, and right click "Add file..". Both behave exactly the same way. We've tried a ton of different permutations, and the common factor seems to be overwriting files in a subfolder. If you drag into the root, or if you drag a new file into the solution, things work as you would expect.

This has caused a number of problems for the team. I hope some of our blog readers can duplicate this, and hopefully offer a solution or workaround!

posted on Friday, March 31, 2006 6:14 PM by jatwood

Comments

# VSTS Links - 04/03/2006

The GovDevelopers blog tells us there is a new Team System resource page.

Buck Hodges blogs about...
Monday, April 03, 2006 7:16 AM by Team System News

# re: Subfolder overwrite issue in Team System RTM

Nice catch - I've repro'd here as well. Sorry this made it into our RTM bits, but thanks for reporting it!
Monday, April 03, 2006 8:32 AM by James Manning

# The Team Foundation Power Toy and Undo Unchanged

Buck Hodges' Team Foundation Power Toy has some functionality that-- to quote Buck directly-- "fills...
Tuesday, April 04, 2006 4:10 PM by Team System

# re: Subfolder overwrite issue in Team System RTM

Yes same problem here. I use a lot of codesmith generated code. So I drag and drop the newly created code into the solution and VS is checking out the code. After checking in, the new code is not in source control. My coworkers can only retrieve the old version. I have to explicitly checkout all the files again and do a new checkin to make sure the code is updated.
Friday, May 05, 2006 3:19 AM by Michiel