Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove TFS source control bindings for a solution from the command line

Is there a command-line approach for having VS 2008 remove TFS source control bindings from a solution file and the constituent project files? I need something that I can run from a batch file so that I don't have to open the solution and click the 2 prompts to permanently remove the bindings.

Edit: After deleting the *.vspscc and *.vssscc files, the project and solution files still have references to TFS source control. So when the solution is opened, you are prompted to remove the solution from source control. This updates the solution and project files to remove the bindings, and that is what I want to automate.

like image 818
Jeff Handley Avatar asked Oct 02 '08 01:10

Jeff Handley


People also ask

How do I remove a Source Control solution?

To remove files from source control: If you select a folder, project, or solution, any eligible child items will also be removed. choose Source Control > Remove or press Ctrl+R, R. The dialog will list the files that can be removed. In that dialog, you can deselect any files you don't want to remove.

How do I turn off Source Control in Visual Studio?

Right-Click If you have the File List open, right-click on any file and select Source Control > Project > Disconnect.


1 Answers

A colleague wrote this NAnt task to do it

http://www.atalasoft.com/cs/blogs/jake/archive/2008/05/21/2custom-nant-task-for-removing-tfs-bindings.aspx

like image 190
Lou Franco Avatar answered Oct 17 '22 19:10

Lou Franco