Initial Migration

Once the Visual Basic 6.0 code is in the source control system, it is necessary to perform an initial migration to establish a migrated code baseline.

  • 1. Open the Visual Basic Upgrade Companion

    Visual Basic Upgrade Companion

  • 2. Create a Migration Solution for your code (for example C:\MergeExample\Sample1)

    Create a Migration Solution

  • 3. Upgrade your code

  • 4. Open Explorer and navigate to the location of your VB6 code (For example C:\MergeExample\Sample1)

  • 5. Under the directory where your code is located, create a new directory called GreenCode (For our example this directory will be C:\MergeExample\Sample1\GreenCode )

  • 6. Copy your migrated code to GreenCode (for our example it means copying the contents of C:\MergeExample\Sample1\VB6_UpgradedCode to the C:\MergeExample\Sample1\GreenCode). This is important to establish a base line for comparison and merge

  • 7. Open Microsoft Visual Studio 2005

  • 8. On the Team Explorer locate your project (for example MergeExample) and double click on Source Control

  • 9. On the Source Control Explorer toolbar click the Add Files button

    Source Control - Add Files

  • 10. Click the Add Folder button and select the GreenCode folder we just created

    Add Folder - GreenCode

  • 11. Check in the GreenCode. IMPORTANT. Add a descriptive Comment. ArtinSoft recommends AT LEAST setting the following information:

    • Green Code Date
    • VB6 Source Code Date/ version
    • VBUC version used to generate the Green Code

    Check in the GreenCode


See Also