December 20, 2006

Working offline in TFS

In Microsoft's new team colloboration tool working offline is not well supported. You have to use some command line utility to get it work as it was in Visual Source Safe.

If you happen to lose your connection during a VS2005 session, you are lost. You should restart it. And after that restart you can have the option to work in disconnected mode.

Then you write some code, change some files, delete some of them and return back to office. Then you start your VS2005 instance and what do you see??? The vs2005 automatically checks in your files!!! Does it ask anything? NO. Any warnings? NO.

What you should do is download a team foundation power toy utility called tfpt. This was used to be a part of vs2005 sdk but is now available as a seperate download. After installation, change your PATH environment variable to include C:\Program Files\Microsoft Team Foundation Server Power Toys. Now haveing installed tfpt (not tftp!!!) , open command prompt and navigate to your solution directory where .sln file is located. Execute tfpt online, enter your domain user name and password and see the list of files and some checkboxes indicating the changed items. If you choose "Pend Changes" your files are automatically checked out and wait for you to checkin. That's all. Just remember to do these prior to starting your visual studio.

The main content of this blog entry taken from here.
Team Foundation Power Toys download site.

No comments:

Post a Comment