Академический Документы
Профессиональный Документы
Культура Документы
Visual Studio provides a conversion wizard for migrating projects from previous versions of .NET to the .NET 4.0 version. The conversion process itself is fairly straightforward: You just open your Visual Studio 2002, 2003, 2005, or 2008 solution in Visual Studio 2010, and the Conversion Wizard automatically opens and walks you through the conversion process. Before you convert any applications, you need to do some preparation work on all of them: Make sure that you have good backups, in case you decide to roll back to the unconverted version. Make sure that all your source code compiles before you convert.
Book II Chapter 4
Upgrading .NET
117
Take the time to clean up any extraneous files that dont belong with the application. Make sure that the .NET 4.0 Framework is installed on all client machines that will run your application. Converting Web applications requires more preparation than converting Windows applications because the conversion process is more involved. See Converting Web applications, later in this chapter, for more details.
118
After the conversion is done, a completion window appears. Any errors that occur during the conversion process are listed. 6. To display a conversion log, select the Show the Conversion Log When the Wizard Is Closed option and then click the Close button.
The conversion log, shown in Figure 4-1, appears in Visual Studio 2010.
Figure 4-1: View the conversion log for details about the conversion process.
Follow these steps again to convert class libraries. After the conversion, build your application in Visual Studio 2010 to make sure that all converted projects are compiled. If you have multiple projects in your solution, you should build your class libraries first and work your way through any dependencies until all your components are built.