Visual Studio 2005, 2008, 2010, 2012, 2013: Connect and synchronize with TFS

System Requirements:

At the target system the following products must be installed, ready to use and licensed:

  • Enterprise Architect: version 7.5 or higher Ultimate / Systems Engineering / Business & Software Engineering Edition (only those editions include a valid licence for the MDG Integration Add-In).
  • Sparx Systems MDG Integration for Visual Studio version 5 or higher
  • Microsoft Visual Studio: version 2005, 2008, 2010, 2012 or 2013 Professional / Enterprise / Community Edition – but no Express editions!
  • Microsoft Team Explorer for Visual Studio, suitable to installed version of Visual Studio.

A Microsoft Team Foundation Server (TFS) must be configured and accessable – on the target system or in the network; and fullfilling the following conditions:

  • a Team Project exists
  • Work Item Queries are defined in this Team Project
  • at least on Solution exists within this Team Project having an EA Model attached (see Setup MDG Integration for Visual Studio)

Preparing Steps:

The “EA Project Explorer” window must be visible in Visual Studio and showing an EA Model tree.

(the following steps regard to the english version of Visual Studio 2013 Community Edition)

  1. Open Visual Studio.
  2. Open menu [File].
  3. Open menu item [Open].
  4. Select menu option [Team Project…].
  5. In window “Connect to Team Foundation Server” select a TFS Server, a Team Project Collection and a Team Project.
  6. In window “Team Explorer” select “Home” area (default area after opening a Team Project).
  7. In window “Team Explorer”, section “Solutions”, open that solution having the EA Model attached.
  8. In window “Solution Explorer” open context menu of attached EA Model (located under “Solution Items”.
  9. Select menu option [View in UML] – the window “EA Project Explorer” will be opened, a connection to the EA Repository established and the Model Tree will be shown.

Connect model with TFS:

  1. Select a package within the EA model shown in window “EA Project Explorer”.
  2. Open package’s context menu.
  3. Open menu item [Team Foundation Server].
  4. Select menu option [Work Item View].
  5. In window “EA Work Items” open the property dialog by clicking the icon [Properties].
  6. In window “Link Properties”:
    1. Enter the hostname of the TFS server into Field [Team Foundation Server Name].
    2. Select the Team Project in field [Team System Project].
    3. Confirm input using [OK].

Import Work Items into model:

  1. Select a package within the EA model shown in window “EA Project Explorer”.
  2. Open package’s context menu.
  3. Open menu item [Team Foundation Server].
  4. Select menu option [Import Work Items].
  5. Window “Select Queries: <Packagename>” shows the available Work Item Queries configured in the selected Team Project:
    1. Select one or more Work Items (Queries providing those items).
    2. Enable option [Link Selected Queries to Package] to remember the selected queries for the package (and to enable an easy synchronization).
    3. Confirm input using [OK].

Synchronize Work Items with model:

  1. Select a package within the EA model shown in window “EA Project Explorer”.
  2. Open package’s context menu.
  3. Open menu item [Team Foundation Server].
  4. Select menu option [Synchronize from TFS].

Posted in Development, MDG Technology, Teamwork, Tips & Tricks
Tags: , , , , , , , , , , , ,