DCSIMG
New empty folders problem in solution explorer - SRL Group

SRL Group

This blog is about Team System, QA and Development methodologies and more...

VSTS Resources

Team System Bloggers

New empty folders problem in solution explorer

Hi,

Today I tried to solve a synchronization problem between VSTS 2008 and Team System, where cs projects contained folders and those folders do not exist in source control.

Furthermore, The programmer tried to delete those zombie folders from the solution explorer and got error message claiming those folders do not exist.
Well, They Don't, actually.

After handling this situation (by excluding zombie folder from project) I managed to recreate the problem:

In solution explorer, under any project, we add a new folder:

Adding new folder in solution explorer


The problem is that the only action pending is the update to the project file.
No folder creation is pending in source control explorer !


Folder not exist in source control explorer


Then we perform check in pending changes, No folder creation is pending.


check in


After that check in, everyone working with that project will have a reference to a non existing folder.
This problem appears only when we create new folder from the solution explorer, not from source control explorer.

The trigger for creating a new folder in source control is adding new items under that folder.

So we can use workarounds:

Workaround 1. Perform check in only after adding new items under that folder.
When we create new items under this new folder, this folder now exist in source control explorer.

Folder in solution explorer and source control explorer
Notice that even now, this new folder is NOT marked as in pending add but will be added after check in...

Check in - where is the folder?

Or -  Workaround 2: Go to Source control explorer and create the folder.

This workaround will be used if we insist to add a new empty folder to source control.

We add the new folder in the source control explorer:

Add folder in source control explorer

Now when we check in, we can notice this new empty folder in pending add state:

Check in creation of new empty folder

Comments

.NETicated said:

MVP Summit MVP Summit 2008, Seattle Day +1 on Grant Holliday's blog MVP Summit 2008, Seattle Day

# April 21, 2008 9:23 AM

Team System News said:

Steve Andrews on Team System Link Love #7. How Do I: Generate Test Data using VSTS Database Edition....

# April 21, 2008 5:25 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Enter the numbers above: