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.
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.
Right-Click If you have the File List open, right-click on any file and select Source Control > Project > Disconnect.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With