.NET Zone is brought to you in partnership with:

Mohamed Radwan is a Visual Studio ALM MVP and Senior ALM Consultant @ Marvel ALM with 10+ years of experience in the software industry (Architecture, Design, Development and Management) specializing in Microsoft Technologies and Agile Methodologies with a customer list that spans the Middle East. M.Radwan’s areas of focus are: C# / .NET, ASP.NET, MVC, JQuery, TDD, BDD, Team Build, TFS, Application Architecture, Agile, Process Automation and Improvement, Configuration Management and Automation. M.Radwan is the founder of TFSEG User Group, Co-founder of MEAALM Community , the author of DevMagicFake Mocking Framework and a frequent speaker in different Microsoft events. M.Radwan also holds M.Sc. of Computer Sciences and Information Technology in Agile Methodologies. M.Radwan holds number of Microsoft certifications including MCT, MCPD, MCITP in EPM, MCTS (7), MCSD, MCAD and CIW Mohamed is a DZone MVB and is not an employee of DZone and has posted 10 posts at DZone. You can read more from them at their website. View Full User Profile

TF.exe Fast Overview

02.06.2013
| 1652 views |
  • submit to reddit

In this post, I will give a fast overview about tf.exe command line, I will show how to use different options, like checkin, workspces, view, diff, status and wrokfold.

The most important considration that we have take is to navigate to the mapping folder inside the working machine so we can use differnet options otherwise we will see the following: error

Unable to determine the workspace. You may be able to correct this by running
‘tf workspaces /collection:TeamProjectCollectionUrl’.

Open the Visual Studio Command Prompt as Administrator, type tf msdn, this will display the helpOpen-VS-Command-LineTF-msdn

Type tf help checkin, to display the help of the checkin optionDisplay-help-about-option

We will go to the project settings and add 2 notes, Reviewer and Time, after that we will get back to the command line and type tf checkin /comment:”Hello this my comment” /notes:”Reviewer=M.Radwan;Time=5:00″ TF-Checkin-with-comment-notes

This will display the checkin dialog-box with the typed comments and notes. TF-CommentTF-Notes

Now we will output the different between 2 changeset in a file, type tf diff FabrikamFiber.CallCenter\fabrikamfiber.web\controllers\ /version: c7~c26 >c:\Radwan.txt TF-output-diff-in-file

Open the file using Notepad2 and select the Diff Files schema (Into ALM with TFS)TF-Open-diff-with-notepad2TF-diff

To view a file a specific version type tf view FabrikamFiber.CallCenter\fabrikamfiber.web\controllers\CustomerControllers.cs /version:c26 TF-view

Published at DZone with permission of Mohamed Radwan, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)