.NET development, Information Worker, Sharepoint and Team System Team System Power Tools : How to use tfpt.exe online - Jean-Pierre under the Guru Meditation Tree

Team System Power Tools : How to use tfpt.exe online

Published Thursday, October 18, 2007 2:44 PM

The following steps outline the workflow I used to demonstrate the use of the Team Foundation Power Tools tfpt online command.

Step 1.

Check in all of your code.

clip_image002

Step 2.

Close Visual Studio. (I am going home i.e. offline) If you don’t do this, you will have problems!

Step 3.

Go home. Oops, I forgot to check out my code. Mark all code as writeable. Visual Studio marks all checked-in files as read-only. This normally prevents you from editing files offline through Visual Studio.

clip_image004

Step 4.

Open Visual Studio (at home i.e. offline)

To simulate offline mode, I have stopped the Team Foundation Server web service:

clip_image006

Step 5.

Bang! This looks very ugly. Tell Visual Studio to "temporarily work uncontrolled" :)

clip_image008

clip_image010

clip_image012

clip_image014

Step 6.

Edit your files. I changed the message in Program.cs, and added a new class (Class1.cs)

Don't rename any files, as TFS cannot deal with renaming offline files. There is no way for TFS to distinguish between deletions and renames.

clip_image016

Step 7

I am leaving home. Close Visual Studio.

Step 8.

I am back at work. TFS is online. Simulate this by restarting the web service.

clip_image018

Step 9

Run tfpt online /deletes /adds. This will make sure that TFS understands the status of your files.

clip_image020

Note that Program.cs is flagged as edit whereas Class1.cs is flagged as delete.

Step 10

Open Visual Studio. Check your files in! It's been a hard night :(

Comments

No Comments