Sdílet prostřednictvím


Migrate the Commerce Solution Assemblies

This topic contains the steps that you must follow to migrate the commerce solution assemblies and incorporate them into your Starter Site project.

To migrate the commerce solution assemblies

  1. Open your browser and locate https://go.microsoft.com/fwlink/?LinkId=70747. Download the commerce solution assemblies.

  2. Unzip the commerce solution assemblies to a Visual Studio project directory such as C:\Documents and Settings\<username>\My Documents\Visual Studio 2005\ Projects\Framework.

  3. Locate https://go.microsoft.com/fwlink/?LinkId=37136, and then download and install the Internet Explorer Web Controls for Content Management Server 2002 with Service Pack 1a.

  4. Open a Visual Studio 2008 Command Prompt window. Select Start, point to Programs, point to Microsoft Visual Studio 2008, point to Visual Studio Tools, and then click Visual Studio 2008 Command Prompt.

  5. In the Visual Studio 2008 Command Prompt window, move to the directory where you copied the assembly files (for example, C:\Documents and Settings\<username>\My Documents\Visual Studio 2005\Projects\Framework), and then type the following command to create a strong name key pair:

    sn –k CS2002StarterSite.snk
    
  6. At the command prompt, type the following command to create the public key file:

    Sn -p CS2002StarterSite.snk CS2002StarterSitePublic.snk
    
  7. In Visual Studio 2008, open the Framework.sln solution from the directory that contains the commerce solution assemblies, and then open the file AssemblyInfo.cs under the AccountManagement project.

  8. Scroll to the bottom of the file and uncomment the line:

    [assembly: AssemblyKeyFile("")]
    
  9. Enter the path of the private key file that you just created between the quotation marks, for example:

    [assembly: AssemblyKeyFile("C:\\Documents and Settings\\<username>\\My Documents\\Visual Studio 2005\\Projects\Framework\Cs2002StarterSite.snk")]
    
  10. Repeat these changes in the AssemblyInfo.cs files under the Search and Shared projects.

  11. To rebuild the Framework solution, click Build, click Build Solution, or press F6.

  12. Copy the following files to the C:\Inetpub\wwwroot\CS2002StarterSite\bin directory:

    AccountManagement\bin\Microsoft.Solutions.AccountManagement.dll

    Search\bin\Microsoft.Solutions.Search.dll

    Shared\bin\Microsoft.Solutions.Shared.dll

  13. In the Visual Studio 2008 Command Prompt window, change directories to C:\Inetpub\wwwroot\CS2002StarterSite\bin, and then type the following command to determine the public key token:

    sn –Tp Microsoft.Solutions.Shared.dll
    
  14. Note the value of the public key token for later use.

  15. Return to your CS2002StarterSite project in Visual Studio 2008 and open the Web.config file. In the <sectionGroup name="Solutions"> section, modify the version number to match the version number of the newly compiled DLLs, and replace the PublicKeyToken value with the new value. Update the version number and PublicKeyToken values in all references to these DLLs.

  16. In the prompt, type the following command to register each of the Framework DLLs with the global assembly cache:

    regasm <filename>.dll
    

See Also

Other Resources

Commerce Server 2002 Starter Site Migration Example