When double-clicking the Source Control node of a Team Project that has no source control folder you receive the following message:
No Source Control Folder
Cannot open $/Projectname. Source control has not been configured for this team project, you do not have permission to acces it, or the team project has been moved or deleted.
What happened?
- In TFS 2010 there is no option in the Team Project Creation Wizard to create a team project without source control (as it was possible in TFS 2008).
- Therefore the prompt that asks if the user wants to recreate that folder, was removed as well.
Workaround:
- Use the TFS Object Model, specifically:
VersionControlServer.CreateTeamProjectFolder(TeamProjectFolderOptions)
- Alternatively, I created a small command line utility that does exactly that.
Download: CreateRootFolder.zip
Prerequisite: This tool requires Team Explorer 2010 to be installed.
(Thanks to Chandru R. from Microsoft for this tip and the support to resolve the issue)
Neno, thanks for posting this. I found it very helpful after destroying the root source control folder for a team project.
@Matt: Glad it helped.
Thanks! this really needs to be part of TFPT