Resetting the link to TFS in a Project File
As I wasn't seeing the updates to Iteration names I'd changed for the project in the MS Project plan, I wanted to unhook the link between Project and TFS to start it again.
The following method won't be necessary for most people, as once you have selected the link then you will be wanting to keep them locked and in sync. But in case you've selected the wrong Team Project, or want to simply unhook it, and try it again, here are the steps:
- Close Microsoft Project
- Open the Registry Editor (regedit)
- Navigate to My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\MS Project\Addins\TFCOfficeShim.Connect
- Modify the LoadBehaviour key from 3 to 2
This prevents the Team Foundation Client plugin from loading with Project. - Load Microsoft Project
- Load the project file you wish to amend the link in
- Select Properties from the File drop-down menu
- Select the Custom tab
- In the Properties list box, there should be entries starting with "VS Team System Data DO NOT EDIT" etc
- Select each of these entries with a single-click (no multiple selects I'm afraid) and click "Delete" (there were 39 of them on mine, the first entry at the bottom of the list "VS Team System Data DO NOT EDIT" appears to be the total number of entries for the encrypted text)
- Save the project file
- Close Microsoft Project
- Repeat steps 2 and 3 if you have closed Regedit
- Modify the LoadBehaviour key from 2 back to 3
- The Team Foundation Client plugin will load with Project again now.
- Load Microsoft Project
- Load the same project file as before
- The "Choose Team Project" option either in the "Team" menu or on the toolbar should now be available again.

