Team Foundation Server
Team Foundation Server InformationTFS Web Portal
Initial Configuration of TFS
Configure a new TFS Project
- Set up a Team Project Collection using the TFS Admin Console appliction on Vibe, or use the Default Collection (no work required)
- Open Visual studio
- Close any open solutions in VS.
- Open "Team Explorer"
- Select the "View" Menu
- Click "Team Explorer"
- In Team Exploere click "Select Team Projects" A dialog titled "Connected to Team Foundation Server" should appear.
- Select "vibe" in the servers drop down. If no servers are listed:
- Click the "Servers" button
- Click "Add"
- In the url field type "vibe" without quotations
- Path should be "tfs" without quotations
- Port number should be 8080
- Protocol should be "HTTP"
- Preview should read "http://vibe:8080/tfs"
- Click "OK"
- Click "Close"
- Select the Team Project Collection which will house the new TFS Project.
- Click "Connect"
- In "Team Explorer" Click the "Home" header below the search box.
- Select "Projects and My Teams" and "New Team Project"
- Enter a Project Name and Description and Click Next
- Select a Process Template
- Select "Team Foundation Version Control" as the version control system and click "Next"
- Review the configuration and click "Finish"
- Click "Close"
- 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.
- 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.
- 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
- Move existing solution data into the empty workspace folder.
- In Team Explorer click the Refresh button. The Solutions section should be populated with all solutions in the subfolders of the workspace folder.
- In the Project section of Team Explorer click "Source Control Explorer"
- Click the Project Node on the left.
- Click the "Add Items to Folder" button. A Dialog will be shown that should list all data moved in to the workspace folder.
- Select all the listed items (Ctrl+A)
- 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.
- Click Finish
- The Source Control explorer will list all the newly added folders. Highlight all folders, right click and select "Check in pending changes"
- Team Explorer will change to display check-in parameters. Enter a comment like "Initial Checkin" and click "Check In"
- Source control will update to indicate that data is up to date.
Delete a TFS Project
- Log in to vibe via remote desktop
- Launch the TFS Admin Console
- Click Start
- Type "TFS"
- Select TFS Admin Console
- In the tree at right expand "Vibe" and "Application Tier"
- Select Team Project Collections
- In the lower pane select the "Team Projects" tab
- Select the desired project
- 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.