ComponentOne Preview Classic for WinForms: ComponentOne Preview Classic for WinForms Overview > Migrating a Preview Classic for WinForms Project to Visual Studio 2005

Migrating a Preview Classic for WinForms Project to Visual Studio 2005

To migrate a project using ComponentOne components to Visual Studio 2005, there are two main steps that must be performed. First, you must convert your project to Visual Studio 2005, which includes removing any references to a previous assembly and adding a reference to the new assembly. Secondly, the .licx file, or licensing file, must be updated in order for the project to run correctly.

To convert the project:

1.   Open Visual Studio 2005 and select File, Open Project.

Locate the .sln file for the project that you wish to convert to Visual Studio 2005. Select it and click Open. The Visual Studio Conversion Wizard appears.

2.   Click Next.

Select Yes, create a backup before converting to create a backup of your current project and click Next.

3.   Click Finish to convert your project to Visual Studio 2005. The Conversion Complete window appears.

Click Show the conversion log when the wizard is closed if you want to view the conversion log.

4.   Click Close. The project opens. Now you must remove references to any of the previous ComponentOne .dlls and add references to the new ones.

5.   Go to the Solution Explorer (View, Solution Explorer) and click the Show All Files button.

6.   Expand the References node, right-click C1.Common and select Remove. Also remove C1.Win.C1PrintPreview and C1.C1PrintDocument the same way.

7.   Right-click the References node and select Add Reference.

8.   Locate and select C1.Win.C1PrintPreview.Classic.2.dll. Click OK to add it to the project.

To update the .licx file:

1.   In the Solution Explorer, right-click the licenses.licx file and select Delete.

2.   Click OK to permanently delete licenses.licx. The project must be rebuilt to create a new, updated version of the .licx file.

3.   Click the Start Debugging button to compile and run the project. The new .licx file may not be visible in the Solution Explorer.

4.   Select File, Close to close the form and then double-click the Form.vb or Form.cs file in the Solution Explorer to reopen it. The new licenses.licx file appears in the list of files.

The migration process is complete.


Send comments about this topic to ComponentOne.
Copyright © 1987-2010 ComponentOne LLC. All rights reserved.