Tuesday, January 29, 2013

TFS tutorials for beginners




What is TFS?
It is a team foundation server. It is a central repository  or storage with version control. Initially Microsoft has VSS(Visual source safe ) for version control. TFS is new extended version of VSS with lot of new features and capabilities.
Three major features
  •  Source Control
  •  Builds
  • Work Items

We will discuss all of above shortly.    Lets start with connect to TFS server with images.


In order to connect TFS from visual studio. Click on Team menu and click on "Connect to Team Foundation Server.."  You can do it same from Start page also.



It will open following dialog box. Click on "Servers.." button.



You can add your TFS server here by clicking on Add button.



Add TFS server Name. If you have additional path after server then you can add it in Path text box. It will show final TFS url in preview section.



 Once you add url, you will get following like dialog box window, where you can find all team projects. you can select your project by check it and click on "Connect".


After connect it opens Team explorer window in visual studio. Which has sections like  Documents, Reports, Work Items, Builds, Source Control.


Source control opens following like  explorer in visual studio. Select your project folder. that project folder should be mapped with your local machines folder. If it is not mapped then it shows at Local Path section as "Not mapped". Click on "Not mapped" link and you can map TFS folder with local machine folder.


It opens following like window. you can insert your local machine path to  map folder. once you click on "Map" button. It downloads all source code files from TFS server to your local machine mapped folder.


It will show following like explorer after mapping. you can find your .sln (solution) file and directly open from there.


You can see different  symbol for particular files. 
  "+" is for newly added file
            "right mark" for checked out file.
"lock" for checked in file


Add new file

You can add new file from project solution and it will automatically added to TFS and shows as "+" symbol. you also can add existing file to TFS from Source Control explorer by right click and "Add items to folder".


Check out


If you want to change already existing file then you need to checked out it first. It will lock files for other users and available for you in edit mode. checked out file shows in "right mark" symbol.


Check in

After finished working on file you can commit your changes back to TFS by check in them.  you can check single file by right click on that file from solution explorer in visual studio and click on "Check in".


You can add your comments like what change you have done etc. on comments box. you can see all related files only has checked for check in following image.



You can also check in multiple file by opening "View Pending changes" window in visual studio. you can select multiple files from there by checked them and check in together. you can also attach "Work Item" for each check in. Check in will create new Change set in TFS. it will be new unique changes set number assigned for each change set. 


Added more info here (http://atulkumarpatelsblog.blogspot.com/2014/01/tfs-with-vs-2013-tutorial.html)






66 comments:

  1. Replies
    1. Thanks Jaya. If you have any question let me know. I will try to resolve.

      Delete
    2. Hi Atul!
      I just have a question
      """
      It opens following like window. you can insert your local machine path to map folder. once you click on "Map" button. It downloads all source code files from TFS server to your local machine mapped folder ""
      My TFS Server is empty bz I just installed it. How to add all source code file + folders of an existing project/website to TFS Server and then I can map it to the local workspace

      Thank

      Rao

      Delete
    3. Hi,

      You can map local folder the way you explain above. then you can manually copy your source code file to that folder. Open Source control explorer on visual studio, Go to your project and right click on that folder will give Menu. Which has option like "Add Items to folder". You can select all files and folder to add in TFS. Once you add it, it will show as checked out. you need to check in them.

      Hope this will help.

      Delete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Hey Atul Thank you very much for this tutorial. I am a beginner in C# .Net development. I want to prepare for the entry level developer interview, Do you have any links or documents for that. Any suggestion on which topic to go for would also work. Thanks in advance.

    ReplyDelete
  4. I have another blog of Interview questions. http://patelsblog.blogspot.com/2012/12/interview-questions.html
    I have not separated it by beginners and Advance thought.
    Hope it will help you.




    ReplyDelete
    Replies
    1. Thank you very much for the link Atul. It was very helpful.

      Delete
  5. This comment has been removed by the author.

    ReplyDelete
  6. Hi Atul,
    Its a good and knowledgeable write-up for a beginner. You have explained the basic task we can accomplish in TFS.
    Do you have anything to share for a experienced professional especially for a build and release engineer?

    And asking this just out of curiosity, what does the "...continue" at the end of your write-up stands for? Its not a hyperlink, then what it is for?Is something coming up soon?

    ReplyDelete
  7. Hi vb@release-work,
    Its good that you like this blog. Actually I have written it to help someone to understand and also thought that it may helpful to others also who is just beginners. so instead of sending private email, I created this. I also wanted to provide more information on same blog thats why continue is there. I will sure try to write more on same topic if people really find it helpful.
    ~Atul

    ReplyDelete
  8. Hello
    Please may I know if you have tutorials on Java, or selenium or QTP for free?
    Thanks
    Rosalyn

    ReplyDelete
  9. Hi Rosalyn..
    Currently I don't have any, but one of my friend do it.
    Check following web site.
    http://www.softwaretestinghelp.org/ .. You can contact them and tell my name as reference if you want.

    ReplyDelete
  10. Hi Atul ,
    Your article on TFS is quite helpful for beginners like me and will really appreciate for more articles on topics like TFS installation, remote accessibility on TFS etc.

    ReplyDelete
  11. This comment has been removed by the author.

    ReplyDelete
  12. Hi Atul
    I am system admin and don't know anything about TFS. I just created a AD user. How can i allow him to access TFS site? I mean where i have to add him?

    ReplyDelete
    Replies
    1. Hi Virat,

      I think following steps will help you.
      Open Visual Studio
      Open Team Explorer
      Click on "Settings"
      Click on Security under "Team Project"

      You can find different Users and Groups section.
      Below that you can find "Add users and groups". you can add users from there by pressing "Add" button. You also can find "Permission for {your selected project from above section}". You can assign permission to newly created User from there.

      I hope this will help.
      ~Atul

      Delete
    2. Thank you. It worked for me. I have an other issue with same user. User is able to connect(connect to different project) with other projects. Is there any to restrict him to only his project?

      Delete
  13. Hi Atul or others,

    Urgent help needed !! My perspective client has shown to use TFS for their project and specially they want it for requirement gathering. I am completely novice and don't know much like how TFS help in requirement gathering part? I got superb help from your blog and I wish to play around the projects but just wondering I don't have any server which I can connect to , so just wondering can I create a server or offline server and later do the practice of further things available in TFS like checkin , checkout etc? Your immediate help is highly appreciated !!

    Regards
    Rahul

    ReplyDelete
    Replies
    1. Hi Sara/Rahul,

      For you I will write another blog and explain you how can you do it.

      ~Atul

      Delete
    2. Hi Atul, did you get chance to create another blog for Sara's question?

      Delete
    3. Hi Atul, did you get chance to create another blog for Sara's question?

      Delete
    4. Hi Kavita,

      I have another blog on new version of TFS. But not like exact answer for Sara's Question. To answer about her Question, If you don't have TFS server on premises, You can try TFS online provided by microsoft. Its free up to 5 Users. Thanks

      Delete
  14. Hi ATUL.. your presentation is quite good for a beginner,,.. can you provide TFS in experienced manner...thank you..

    ReplyDelete
    Replies
    1. Hi Karthik,
      Sure I will do it. What else you wanted to know about TFS? Microsoft has provided enough tutorials and video's for it. This blogs are for someone who doesn't know anything and wanted to start. I have written another blog on same topics and also provided all Url's for Microsoft tutorials and videos about TFS. here "http://atulkumarpatelsblog.blogspot.com/2014/01/tfs-with-vs-2013-tutorial.html"

      Delete
    2. Hi Atul ,

      I am looking more deep functions in TFS. like branching , merging , work items , build , deployments , will you able to take classes for me

      Delete
  15. easy to understand in user friendly language.

    ReplyDelete
  16. It is really nice and understandable, you should write more, people will like it.

    ReplyDelete
  17. Hi,
    Thanks for the post.

    Actually currently we are implementing TFS 2013-Agile process template.


    I just want to know what features TFS provides.Please correct me if i am wrong.

    1 .BUild -
    ex:if i m connected to TFS server says ServerA.In local machine if i am connecting or creating project
    using vs 2013,ServerA.,
    what is continuous integration.?
    what it is??What i have understood is -if i have checked continous integration(build) and done changes to file ,check-in
    is that it will be moved to the ServerA.Am i right?

    2.Features:
    Agile methodlogy,
    Code Reviews,
    Version control,
    code reusablilty,

    Is there any other features??

    3.how to maintain the folders like Dev , QA ,Prod

    ReplyDelete
  18. Hi, Very good blog for beginner... which I am. I've been working / floundering around in TSF for about two weeks. Here is my scenario:
    I made changes to our team project and check it in. I over looked something and need to fix and rebuild the project. In the mean time another user has checked out the project and have made their changes. It is still checked out to them. However, I have been able to make changes to the project saved on my machine up until yesterday. Nowe I'm getting messages that its checked out by another user and will not all me to make changes on my machine.

    How do I fix this? How do I fix the code so that I can build and test on my machine before moving it to our development server where the other programmer can pick up my new changes?

    Help! One small change has hosed up several others timeline waiting to make their changes in TSF.

    Thanks for you time!

    ReplyDelete
  19. Covered all basic ideas of TFS and easy to understand.

    ReplyDelete
  20. Hi Atul,

    I have configured a project from TFS 2010 and mapped it. After mapping when i open the solution in VS2010, it is not showing me the checked in and checked out option. But when i do any changes to the files in the project , it automatically updates the TFS. Please help me how to resolve this.

    Thanks,
    Kumar

    ReplyDelete
  21. sir I am a fresher(B.Tech) so working in TFS has future ??
    if yes than what kind??

    ReplyDelete
    Replies
    1. TFS is just a code repository like Github. You can make career on TFS admin. But opportunity would be limited. And any developer has to do TFS daily basis so there is not such kind of need to have TFS admin. So I won't suggest you to just concentrate on TFS. Sorry for late reply. I am also a developer not a TFS admin. :)

      Delete
    2. Sir currently I am working in TFS, can you help me with what technologies or language I can prepare myself so that it can help me in future for switching projects or company.

      Delete
  22. Hi Atul

    This is krishna. Actually i wanted to work with MTM for that i install TFS 2013. after that. i want to know how to configure both TfS and MTM . wanted to know more features of the TFS and MTM can you Help me .


    ReplyDelete
  23. It was really an amazing experience while going through your blog. very useful post regarding TFS

    ReplyDelete
  24. The QuickBooks Payroll Support Phone Number team at site name is held accountable for removing the errors that pop up in this desirable software. We look after not letting any issue can be purchased in in the middle

    ReplyDelete
  25. The main functionality of QuickBooks Enterprise Technical Support Number upon company file. In line with the experts, if you want solve the problem, then you'll definitely definitely need certainly to accept it first. The error will likely not fix completely until such time you comprehend the primary cause related to problem.

    ReplyDelete
  26. As company file plays a really crucial role in account QuickBooks Support Number so that it becomes only a little tough to spot. File corruption issue is a little tricky, however, you will overcome it for very long depending on the 2nd instances.

    ReplyDelete
  27. Quickbook Enterprise Support Being That They Are In Continuous Utilization Of Workbook, Sheets, Account Records, And Payroll Management Sheets. While QuickBooks Offers Multiple Financial Needs And Advantageous Assets To Its Users, QuickBooks Enterprise Tech Support Number To Solve Any Type Of Issue Generated.

    ReplyDelete

  28. QuickBooks Payroll Support Contact Number helps you to resolve all your technical and functional problems while caring for this well known extensive, premium and end-to-end business accounting and payroll management software. Our experts team at QuickBooks payroll support number will make you recognize its advanced functions and assists someone to lift up your organization growth.

    ReplyDelete
  29. Though QuickBooks Payroll Support Number a helpful tool for QuickBooks users in the business realm, yet some hits and misses may arise anytime during use. All of these issues become a good inconvenience to users causing a group back again to the highly reputed nature of QuickBooks accounting software.

    ReplyDelete
  30. Talk to our independent AccountWizy Quickbooks customer support to obtain the best advice from our united states of america based Certified ProAdvisors in order to fix business or accounting queries in addition to Quickbooks Errors quickly. Our third party independent QuickBooks Customer Service Phone Number and our experts are 24/7 active to give you Quickbooks customer support because of its products.

    ReplyDelete
  31. We all know that for the annoying issues in QuickBooks Enterprise Support software, you'll need a sensible companion who is able to enable you to eradicate the errors instantly. As a result of this we at QuickBooks Enterprise Support contact number offers you the fundamental reliable solution of one's every single QuickBooks Enterprise errors.

    ReplyDelete
  32. QuickBooks Technical Support Number Premier has various industry versions such as retail, manufacturing & wholesale, general contractor, general business, Non-profit & Professional Services, there is innumerous errors that will make your task quite troublesome.

    ReplyDelete
  33. Access it the spot support for QuickBooks Tech Support Phone Number for rectifying the technical glitches: Give a call at quickbooks support phone number, if you're encountering any difficulties which can be mentioned previously. If you are facing virtually any problems with your QuickBooks, you'll be able to also make instant calls. Your queries are certain to get resolved with no delays.

    ReplyDelete

  34. QuickBooks Support Number: Professional Technicians
    For many associated with the business organizations, it really is and contains for ages been a challenging task to manage the business accounts in a suitable way by locating the appropriate solutions.

    ReplyDelete
  35. QuickBooks users are often found in situations where they should face many of the performance and some other errors as a result of various causes inside their computer system. If you'd like any help for QuickBooks errors from customer service to obtain the way to these errors and problems, it is simple to connection with QuickBooks Support Number and obtain instant assistance with the guidance of your technical experts.

    ReplyDelete
  36. Our QuickBooks Tech Support Number- We comprehend the complexity and need making use of this accounting software in day to day life. You can’t look out for just about time for this to have a fix of each single QB error.

    ReplyDelete
  37. Therefore, QuickBooks is available for users around the world whilst the best tool to provide creative and innovative features for business account management to small and medium-sized business organizations. If you’re encountering any kind of QuickBooks’ related problem, you could get all that problems solved just by making use of the QuickBooks Support.

    ReplyDelete
  38. QuickBooks Premier is an accounting software which includes helped you grow your business smoothly. It offers some luring features which make this software most desirable. In spite of most of the well-known QuickBooks Premier features you will probably find difficulty at some steps. QuickBooks Support Number is the foremost destination to call in the time scale of these crisis.

    ReplyDelete
  39. You need to arrive at us when it comes to a number of software issues. The QuickBooks Support Phone Number satisfaction may be high class with us. It is possible to contact us in many different ways.

    ReplyDelete
  40. QuicKbooks Tech Support Phone Number offers an extensive financial solution, where it keeps your entire business accounting requirements in one single place. From estimates to bank transfers, invoicing to tracking your expenses and staying on top of bookkeeping with regards to tax time, it really is prepared for many from it at one go.

    ReplyDelete
  41. QuickBooks Support offers an extensive financial solution, where it keeps your entire business accounting requirements in one single place. From estimates to bank transfers, invoicing to tracking your expenses and staying on top of bookkeeping with regards to tax time, it really is prepared for many from it at one go.

    ReplyDelete
  42. It’s extraordinary for organizations which report using one basis & record assesses an extra.Search towards the chart of accounts is simple to manage with added search bar right in the chart of accounts. For better information, you could call at QuickBooks Enterprise Tech Support Phone Number.

    ReplyDelete
  43. Any QuickBooks user faces any kind of identified errors in their daily accounting routine; these errors can vary from one another to a big degree, so our dedicated QuickBooks Support Phone Number. Service Pro-Advisors are very well loaded with their tools and expertise to provide most effective resolutions very quickly to our customers.

    ReplyDelete
  44. While using the QuickBooks if this error is originating that is QuickBooks Error Code 6000-301 then QuickBooks is not able to open the company file due to file not able to save to your local hard disk either hard drive of s server or QB database server manager has already been running.

    ReplyDelete
  45. From installation error to upgrading error to update issues to even multi-user troubles etc., all of the issues of QuickBooks Payroll Support Number are solved when you look at the easiest manner by our talented team.

    ReplyDelete
  46. Take delight in with an array of outshined customer service services for QuickBooks Support Phone Number via quickbooks technical support contact number at any time and from anywhere. It signifies that one can access our tech support for QuickBooks at any moment.

    ReplyDelete

  47. Get built with several of the most brilliant accounting features such as for instance creating a company plan, easy remote access, inventory tracking and more.Keep all things organized in a single place with QuickBooks payroll and save your time. Get things carried out in an amazing way because of the QuickBooks Support Phone Number help.

    ReplyDelete
  48. Also, it might occur to take place during Windows startup or shutdown, and even if the Windows operating system will be installed. This is why you should keep an eye on when and where the 9999 error takes place which acts as a very crucial bit of information in troubleshooting the problem. If you would like to learn How To Fix Quickbooks Error 9999, you can continue reading this blog.

    ReplyDelete
  49. Nice post. Thank you to provide us this useful information.
    Visit us: RPA Ui Path Online Training
    Visit us: Ui Path Course Online

    ReplyDelete