Migration Project Setup

Prerequisites

Before setting up the migration project, it is necessary to install and correctly configure the MS Team Foundation Client. Instructions can be found at the following URL: http://msmvps.com/blogs/vstsblog/archive/2009/01/09/installing-amp-configuring-team-foundation-client-aka-team-explorer.aspx

Create a new Team System Project.

To create a new Team System Project in Visual Studio 2005, follow these steps:

  • 1. Go to the File Menu. Select New and then Team Project to start a wizard.

    File->New->Team Project

  • 2. The “Specify the Team Project Settings” window of the New Team Project wizard appears. Type the Team Project name. For example type MergeExample and click Next.

    Specify the Team Project Settings

  • 3. Select the Template for the Team Project. We recommend using the ArtinSoft Migration Methodology – v0.8 or later. Click Next.

    Select a Process Template

  • 4. Type the Title for the Team Project Portal. This document will use MergeExample. Click Next

    Specify the title of the team project

  • 5. Select your source control settings. Select the first option (Create an empty source control folder), and click Next

    Specify Source Control Settings

  • 6. Click Finish when the summary of your Team Project settings is presented.

    Confirm Team Project Settings

  • 7. Wait while the project is created. It will take a few minutes.

    Team Project Creation Status

Configure Visual Studio to use Team System

  • 1. Start Microsoft Visual Studio 2005

  • 2. Go to File->Open->Team Project...

    File->Open->Team Project

  • 3. A Dialog will open to choose the Foundation Server and the Team Project to use. This example uses a project called MergeExample. Click OK.

    Connect to Team Foundation Server

  • 4. Team Explorer will open with the selected project. Expand the elements for the MergeExample project previously selected.

    Team Explorer will open with the selected project

  • 5. Map the local directories to the source control system. On the expanded tree, Double Click on the Source Control Node

    Source Control Node

  • 6. The Source Code Explorer will open:

    The Source Code Explorer will open

  • 7. In the Workspaces dropdown box select Workspaces...

    Workspances

  • 8. In the Manage Workspace dialog select the appropriate workspace. Click Edit...

    Manage Workspaces

  • 9. In the Edit Workspace dialog, type a description for your source control and select the source control Folder created previously ($/MergeExample) and the directory in the local file system where the code is stored (C:\MergeExample).

    Edit Workspaces

Initial Check in

The next step is to check in the Visual Basic 6.0 source code that will be migrated

  • 1. In the Source Code Explorer Click on Add Files:

    Source Control,Add Files

  • 2. Click Add Folder and select the folder with the VB6 files

    Add Folder, Browse for Folder GUI

  • 3. After selecting the folder, Visual Studio shows a list of files contained in the directory. Unnecessary files, such as MSSCCPRJ.SCC, should be removed. Click OK when done.

    Add to Source Control GUI

  • 4. To commit the code to the Source Code Repository, on the Source Code Explorer, right click on Source Control Folder (for this example it is MergeExample) and select Check In Pending Changes...

    Check in pending changes

  • 5.Write an appropriate comment and press Check In

See Also