Geeks With Blogs

Tim Huffam Dotting the I and crossing the T of I.T.

To remove all source control from a TFS project (not a VS project!) - you must use the 'tf destroy' tool. 

If, like me you try to delete the top-level directory/project node in Source Control Explorer (within VS), then you'll likely get the following error:

TF10169: Unsupported pending change attempted on team project folder $/MyProject.  Use the Project Creation Wizard in Team Explorer to create a project or the Team Project deletion tool to delete one.

So, this (removing source control) is useful if you have a TFS project created just for project management assets eg Work Items, Sprints, PBI's etc.

Use the following syntax:

  tf destroy $/<project name> /s:<server name>

  eg: 
  tf destroy $/MyProject /s:mytfsserver.mydomain.com

The tf.exe tool is within the <Program Files>\Microsoft Visual Studio 9.0\VC dir.

Note that this will remove the project from the Source Control Explorer - but the TFS project still exists - you can see it in Team Explorer and/or TFS Web Access.

Posted on Wednesday, July 6, 2011 10:07 PM C# .NET , Dev Env, TFS, MSBuild etc | Back to top


Comments on this post: Removing source control from a TFS project

# re: Removing source control from a TFS project
Requesting Gravatar...
Might be old new, but it was new to me
Left by liquid diet weight loss on Nov 30, 2011 4:42 AM

# re: Removing source control from a TFS project
Requesting Gravatar...
You actually published quite a lot of favorable in addition to crucial fabric regarding posting. Any person generated many comfortable solutions, i'll go ahead and go ahead and you ought to chest area these products apart the next occasion all-around.
Left by Instagram For Android on Apr 11, 2012 4:28 AM

# re: Removing source control from a TFS project
Requesting Gravatar...
great a new source information. get souce
Left by baju batik on Apr 23, 2012 9:50 AM

# re: Removing source control from a TFS project
Requesting Gravatar...
TFS project?
Left by Tai facebook on Oct 27, 2012 1:34 AM

# re: Removing source control from a TFS project
Requesting Gravatar...
The good website for programming, i love c#
Left by tai opera mini on Nov 23, 2012 4:18 AM

# re: Removing source control from a TFS project
Requesting Gravatar...
Thanks for your Tip. I'm working on a new TFS project and need some help there. Hope that this will help me.
Left by Maria on Apr 14, 2013 2:06 PM

Your comment:
 (will show your gravatar)


Copyright © Tim Huffam | Powered by: GeeksWithBlogs.net