Not logged in - Login

Team Foundation Server

Team Foundation Server Information

TFS Web Portal

Initial Configuration of TFS

Configure a new TFS Project

  1. Set up a Team Project Collection using the TFS Admin Console appliction on Vibe, or use the Default Collection (no work required)
  2. Open Visual studio
  3. Close any open solutions in VS.
  4. Open "Team Explorer"
    1. Select the "View" Menu
    2. Click "Team Explorer"
  5. In Team Exploere click "Select Team Projects" A dialog titled "Connected to Team Foundation Server" should appear.
  6. Select "vibe" in the servers drop down. If no servers are listed:
    1. Click the "Servers" button
    2. Click "Add"
    3. In the url field type "vibe" without quotations
    4. Path should be "tfs" without quotations
    5. Port number should be 8080
    6. Protocol should be "HTTP"
    7. Preview should read "http://vibe:8080/tfs"
    8. Click "OK"
    9. Click "Close"
  7. Select the Team Project Collection which will house the new TFS Project.
  8. Click "Connect"
  9. In "Team Explorer" Click the "Home" header below the search box.
  10. Select "Projects and My Teams" and "New Team Project"
  11. Enter a Project Name and Description and Click Next
  12. Select a Process Template
  13. Select "Team Foundation Version Control" as the version control system and click "Next"
  14. Review the configuration and click "Finish"
  15. Click "Close"
  16. Create an empty folder on your file system to serve as the workspace for the project. This workspace may contain multiple solutions. The workspace is a folder on your local file system where you will perform your work. A Workspace is mapped to a TFS project.
  17. In Team Explorer click "Configure Workspace" under the project header. The first box is the path to the TFS Project and should be "$/[Project Name" where "$" represents the TFS Server and Team project collection. so the expanded path would be "[server]\[TFS Project Collection]\[TFS Project Name]" The second box in "Configure Workspace is the local path which will be connected to TFS Server/collection/project. Click the browse button and set the workspace local directory to the empty directory created in the previous step.
  18. Click "Map & Get" If an error occurs it may be necessary to clear the TFS cache located at C:\Users\UserName\App_Data\Local\Microsoft\Team Foundation\Cache
  19. Move existing solution data into the empty workspace folder.
  20. In Team Explorer click the Refresh button. The Solutions section should be populated with all solutions in the subfolders of the workspace folder.
  21. In the Project section of Team Explorer click "Source Control Explorer"
  22. Click the Project Node on the left.
  23. Click the "Add Items to Folder" button. A Dialog will be shown that should list all data moved in to the workspace folder.
  24. Select all the listed items (Ctrl+A)
  25. Click Next. AFter a moment a listing of all files and folders will displayed. This is an opportunity to exclude/include items. The inclusion/exclusion is designed to avoid version control on compiled or user specific items.
  26. Click Finish
  27. The Source Control explorer will list all the newly added folders. Highlight all folders, right click and select "Check in pending changes"
  28. Team Explorer will change to display check-in parameters. Enter a comment like "Initial Checkin" and click "Check In"
  29. Source control will update to indicate that data is up to date.

Delete a TFS Project

  1. Log in to vibe via remote desktop
  2. Launch the TFS Admin Console
    1. Click Start
    2. Type "TFS"
    3. Select TFS Admin Console
  3. In the tree at right expand "Vibe" and "Application Tier"
  4. Select Team Project Collections
  5. In the lower pane select the "Team Projects" tab
  6. Select the desired project
  7. Click the "Delete" button on the right

TFS Migration Notes

  • Correct Build events to replace E:\DevSystems\___ with " $(ProjectDir)..\..\____" relative path from project directory but also needs quotes in case workspace path has spaces in it.
  • Not all DLLS appear to be included. Test run of TFS Project setup included dlls but some were apparently excluded. When adding files to the project for the first time there was a very lengthy exclusion list that should be looked at carefully. Might also be able to add the necessary dlls back and dodge the exclusion when adding to source control.
  • There is a command line utility tf.exe located at C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE
  • Phantom Pending Changes - It can occur that pending changes to versioned files can persist in the Visual Studio Source control explorer even after the corresponding files and TFS Project have been deleted. These changes can be removed using the tf command line utility as follows: tf undo "$/[TFS Project Name]/path/to/file" The path to the file can be retrieved from Source Control Explorer by right clicking the pending change and selecting Advanced, Properties. This should be done while VS is closed.