One of the things I learned while setting up a virtual Team Foundation Server (TFS) environment is that there are definitely a few “gotchas.” I encountered one of these while writing up some documentation on how to integrate a Web Application Project (WAP).
Before I began documenting the procedure, I went through and confirmed that everything would work. When I was finished, I figured I would delete the Team Project and start over. However, this didn’t work as I expected. Here’s what I did:
- Created Team Project.
- Added my WAP to the Team Project source control.
- Created a new Build Type.
- Ran the new build. Worked fine.
- Deleted the Team Project.
- Clicked Start -> All Programs -> Microsoft Visual Studio 2005 -> Visual Studio Tools -> Visual Studio 2005 Command Prompt
- Typed the command: TFSDeleteProject /Server:<ServerName> <TeamProjectName>
TF50608: Unable to retrieve information for security object $PROJECT:vsts:///Classification/TeamProject/<guid, it does not exist.
Turns out that when you delete a Team Project, it isn’t really deleted. Parts of the project, including version control and work items, are maintained in the Team Foundation Data Warehouse and aren’t removed when the project is deleted. Consequently, when you recreate a Team Project there is lingering data.
This is pretty disappointing; it seems that, for all intents and purposes, TFS is corrupt. The only way I could move forward was to create a new Team Project with a different name.
Anyone have any insight?